247
edits
No edit summary |
|||
Line 50: | Line 50: | ||
int val[6];//array.5 light sensors total | int val[6];//array.5 light sensors total | ||
void setup() { | void setup() { | ||
Serial.begin(9600); | Serial.begin(9600); | ||
} | } | ||
void loop() { | void loop() { | ||
for(int i = 0; i < 5; i++){ | for(int i = 0; i < 5; i++){ | ||
val[i] = map(analogRead(i),0,1023,0,analogRead(A5)); | val[i] = map(analogRead(i),0,1023,0,analogRead(A5)); |
edits