EasyManua.ls Logo

Keyestudio Ks0428 - Test Code

Keyestudio Ks0428
247 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...
73
www.keyestudio.com
(5) Test Code
/*
keyestudio Mini Tank Robot V2
lesson 1.1
Blink
http://www.keyestudio.com
*/
void setup()
{
pinMode(2, OUTPUT);// initialize digital pin 2 as an output.
}
void loop() // the loop function runs over and over again forever
{
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage
level)
delay(1000); // wait for a second
digitalWrite(2, LOW); // turn the LED off by making the voltage
LOW
delay(1000); // wait for a second
}
//****************************************************************

Table of Contents

Related product manuals