Saturday, September 27, 2014

CR Detector Code (Direct Detector Side)

Quick code writeup for the detector side of things:

int x=1;
int a1=1;
int a2=2;
int a3=3;
int a4=4;

stp
Serial.begin(9600);
fin
lp
if(x=<4){
Serial.println(analogRead("a"+x);
}
x=1
fin


which converts to:

int x=1;
int a1=1;
int a2=2;
int a3=3;
int a4=4;

void setup() {


Serial.begin(9600);

}

void loop(){

if(x=<4){
Serial.println(analogRead("a"+x);
}
x=1
}


No comments:

Post a Comment