/*LED Blink Party*/
void setup()
{
unsigned char ledPin; //ledPin will be set to 1,2,3,4,5,6, 7 and 8.
for(ledPin=1;ledPin<=8;ledPin++)//In turn set 1 ~ 8 digital pins to output mode
pinMode(ledPin,OUTPUT); //Set the ledPin pin to output mode
}
void loop()
{
unsigned char ledPin; //ledPin will be set to 1,2,3,4,5,6, 7 and 8.
for(ledPin=1;ledPin<=8;ledPin++)//Every 200ms on in order LED1 ~ 8
{
digitalWrite(ledPin,HIGH); //led on
delay(200); //Delay 200 ms
}
for(ledPin=1;ledPin<=8;ledPin++)//Every 200ms off in order LED1 ~ 8
{
digitalWrite(ledPin,LOW); //led off
delay(200); //Delay 200 ms
}
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
led1:A
led1:C
led2:A
led2:C
led3:A
led3:C
led4:A
led4:C
led5:A
led5:C
led6:A
led6:C
led7:A
led7:C
led8:A
led8:C
r1:1
r1:2
r2:1
r2:2
r3:1
r3:2
r4:1
r4:2
r5:1
r5:2
r6:1
r6:2
r7:1
r7:2
r8:1
r8:2