EasyManua.ls Logo

Eckstein komponente KS0530 - Page 89

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
89
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 .