SainSmart UNO R3 Starter Kit For Arduino
pinMode(ledPin, OUTPUT)
;//
define interface is output
}
void loop()
{
digitalWrite(ledPin, HIGH); //
light up led lamp
delay(1000)
; //
delay 1s
digitalWrite(ledPin, LOW)
; //
go out led lamp
delay(1000)
; //
delay 1s
}
After downloading the program, you can see our 13-foot LED lights flashing, so that our small
lights flicker experiment is complete.