EasyManua.ls Logo

Eckstein komponente KS0530 - Page 87

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...
87
(5)Test Code
/*
keyestudio sun_follower
lesson 1.1
Blink
http://www.keyestudio.com
*/
#define LED 3 //define the pin of LED as D3
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(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage
LOW
delay(1000); // wait for a second