aboutsummaryrefslogtreecommitdiff
path: root/examples/ZeroBlink/ZeroBlink.ino
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2018-02-24 16:03:37 +0000
committerGitHub <noreply@github.com>2018-02-24 16:03:37 +0000
commit139b5dbc4919e118b0e18783fae8e51a2dbc258c (patch)
treecff8ea8bb5e6f63d7ada4eb85ad67a9b5237525a /examples/ZeroBlink/ZeroBlink.ino
parentb3c5127be244ef68f1f895155f3d8999f8800f83 (diff)
parentc10eaa4f480da35437d13fdc21df5d13e2d11866 (diff)
Merge branch 'master' into disable-prog-types-compat
Diffstat (limited to 'examples/ZeroBlink/ZeroBlink.ino')
-rw-r--r--examples/ZeroBlink/ZeroBlink.ino19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/ZeroBlink/ZeroBlink.ino b/examples/ZeroBlink/ZeroBlink.ino
new file mode 100644
index 0000000..f9a59a9
--- /dev/null
+++ b/examples/ZeroBlink/ZeroBlink.ino
@@ -0,0 +1,19 @@
+/*
+ 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
+}