Estimated completion time:
20-30 minute
Electronic Systems: The Robot & The Codes (Page 30 & 31)
Repeat commands in void setup and void loop for every LED.
Example:
int LED1 = 0, LED2 = 1;
void setup( ) {
pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
}
void loop ( ) {
digitalWrite(LED1,HIGH);
digitalWrite(LED2,HIGH);
}
(P/S: This code is incomplete)