lesson 1.2
Blink
http://www.keyestudio.com
*/
#define LED 3 //define the pin of LED as D10
void setup()
{
pinMode(LED, OUTPUT);// initialize digital pin LED as an output.
}
void loop() // the loop function runs over and over again forever
{
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage
level
delay(100); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage
LOW
delay(100); // wait for a second
}
//****************************************************************
Upload code and observe the state of the LED .