Getting To Blinky
Blinking an LED using an Arduino
Blinking a light emitting diode (LED) is the electronics version of what the “Hello World!” program is to programming languages. In this tutorial, we will learn how to use an arduino microcontroller to blink an LED!
1
2
3
4
5
6
7
8
9
10
11
12
13
void setup()
{
pinMode(7,OUTPUT);
}
void loop()
{
digitalWrite(7, HIGH); //Turn ON pin7
delay(500); //Wait
digitalWrite(7, LOW); //TURN OFF pin7
delay(1000); //Wait
}
This post is licensed under
CC BY 4.0
by the author.