Adding Blinky.ino and README.md
This commit is contained in:
parent
63d616b06e
commit
8146494508
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
Blinky
|
||||
|
||||
Toggles the LED of the Arduino repeatedly on and off.
|
||||
|
||||
by Martin Stokroos
|
||||
m.stokroos@rug.nl
|
||||
*/
|
||||
|
||||
#define PIN_LED 13
|
||||
|
||||
// the setup function called once after reset
|
||||
void setup() {
|
||||
// initialize digital pin connected to the LED as an output.
|
||||
pinMode(PIN_LED, OUTPUT);
|
||||
}
|
||||
|
||||
// infinite program loop
|
||||
void loop() {
|
||||
digitalWrite(PIN_LED, HIGH); // turn the LED on
|
||||
delay(500); // wait for half a second
|
||||
digitalWrite(PIN_LED, LOW); // turn the LED off
|
||||
delay(500); // wait for half a second
|
||||
}
|
||||
|
||||
// end
|
|
@ -0,0 +1,5 @@
|
|||
# Blinky
|
||||
|
||||
Blinky is a simple Arduino sketch that blinks the LED on the Arduino.
|
||||
The sketch was created for learning how to create a Git repository.
|
||||
|
Loading…
Reference in New Issue