*****CODE IN DESCRIPTION*****
Arduino project in 1 minute or less: Blinking LED. A simple blinking led for your projects! Great for beginners.

Music from https://filmmusic.io
“Inspired”, “Monkeys Spinning Monkeys” by Kevin MacLeod (https://incompetech.com)
License: CC BY (http://creativecommons.org/licenses/by/4.0/)

*****CODE*****
void setup() {
pinMode(13, OUTPUT); // Set Arduino pin 13 for output
}
void loop() {
blink(); // Run blink() -function
}
void blink(){
digitalWrite(13,HIGH); // LED ON
delay(200); // Wait…
digitalWrite(13,LOW); // LED OFF
delay(200); // Wait…
}

, https://i.ytimg.com/vi/31CZZkRrSCQ/hqdefault.jpg

source

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.