Skip to content
Browse files

second commit

  • Loading branch information...
1 parent 8628654 commit 81fa3948150bb1687831b5031fa7b5d03c38ed81 @ejgertz committed Sep 16, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 chapter-1/blink
View
22 chapter-1/blink
@@ -0,0 +1,22 @@
+/*
+ Blink
+ Turns on an LED on for one second,
+then off for one second, repeatedly.
+
+ This example code is in the public domain.
+*/
+
+
+void setup() {
+ // initialize the digital pin as an output.
+ // Pin 13 has an LED connected on most Arduino boards:
+ pinMode(13, OUTPUT);
+}
+
+
+void loop() {
+ digitalWrite(13, HIGH); // set the LED on
+ delay(1000); // wait for a second
+ digitalWrite(13, LOW); // set the LED off
+ delay(1000); // wait for a second
+}

0 comments on commit 81fa394

Please sign in to comment.
Something went wrong with that request. Please try again.