Created
July 7, 2016 18:19
-
-
Save ksahnine/1c6aac4893faed908f50a6050e54d8d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Blink | |
* Turns on an LED on for one second, | |
* then off for one second, repeatedly. | |
*/ | |
#include "Arduino.h" | |
void setup() | |
{ | |
// initialize LED digital pin as an output. | |
pinMode(5, OUTPUT); | |
} | |
void loop() | |
{ | |
// turn the LED on (HIGH is the voltage level) | |
digitalWrite(5, HIGH); | |
// wait for a second | |
delay(1000); | |
// turn the LED off by making the voltage LOW | |
digitalWrite(5, LOW); | |
// wait for a second | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment