247
edits
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
//int val[5]; array.5 light sensors total | //int val[5]; array.5 light sensors total | ||
void setup() | |||
void setup() { | { | ||
Serial.begin(9600); //Serial Communication set up | Serial.begin(9600); //Serial Communication set up | ||
} | } | ||
void loop() | void loop() | ||
{ | |||
for(int i = 0; i < 5; i++){ | for(int i = 0; i < 5; i++){ | ||
val[i] = analogRead(i); | val[i] = analogRead(i); | ||
Serial.print(val[i]); | Serial.print(val[i]); | ||
Serial.print(" "); | Serial.print(" "); | ||
} | |||
Serial.println(); | Serial.println(); | ||
delay(10); | delay(10); | ||
} | |||
edits