Pulled out the MAX1932 voltage set value to a variable in the start of the code.

Allows for it to be changed more easily to change SIPM type from avansid to hammamatsu.
This commit is contained in:
James Devine 2016-04-23 18:00:05 +02:00
parent 385d315c36
commit 2080a88a7a

View file

@ -63,6 +63,10 @@ double magx = 0;
double magy = 0;
double magz = 0;
int currentval = 0xFF;
//this is the target voltage for the SIPM supply from the MAX1932
int stablevoltage = 0x6D;
long exacttime = 0;
int uptime = 0;
String outputbuffer = ""; //write all the outputs to a buffer and then fmacro it out
@ -101,7 +105,7 @@ void setup()
digitalWrite(slaveAPin, LOW);
SPI.begin();
Serial.println(F("ramping start"));
ramp(0x6D);
ramp(stablevoltage);
}