Arduino hello world

This commit is contained in:
Dan Buch 2013-12-28 22:04:42 -05:00
parent 69e062f1f4
commit 9e8a532da6

View File

@ -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);
}