247
edits
| No edit summary | No edit summary | ||
| Line 49: | Line 49: | ||
| 01. Initialize five sensors, receive data values from Arduino, and send them to Max. | 01. Initialize five sensors, receive data values from Arduino, and send them to Max. | ||
| int val[ | //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 <  |    for(int i = 0; i < 5; i++){ | ||
|      val[i] = analogRead(i); |      val[i] = analogRead(i); | ||
|      Serial.print(val[i]); |      Serial.print(val[i]); | ||
edits