From 9e8a532da6193c19d227485f0c1c4c181a266f1b Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 28 Dec 2013 22:04:42 -0500 Subject: [PATCH] Arduino hello world --- arduino/HelloWorld/HelloWorld.ino | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 arduino/HelloWorld/HelloWorld.ino diff --git a/arduino/HelloWorld/HelloWorld.ino b/arduino/HelloWorld/HelloWorld.ino new file mode 100644 index 0000000..a0f2d08 --- /dev/null +++ b/arduino/HelloWorld/HelloWorld.ino @@ -0,0 +1,15 @@ +const unsigned int LED_PIN = 13; +const unsigned int PAUSE = 500; + + +void setup() { + pinMode(LED_PIN, OUTPUT); +} + + +void loop() { + digitalWrite(LED_PIN, HIGH); + delay(PAUSE); + digitalWrite(LED_PIN, LOW); + delay(PAUSE); +}