aboutsummaryrefslogtreecommitdiff
path: root/examples/BlinkOpenCM/Blink.ino
diff options
context:
space:
mode:
authorKarl Semich <fuzzyTew@gmail.com>2017-07-11 12:38:43 +0000
committerKarl Semich <fuzzyTew@gmail.com>2017-07-12 23:55:05 +0000
commit5bcb64ade92b1ed8e6e0bc5760fe064cc26a49c3 (patch)
treee50716f564a35bfac141c0f47efb1f9088897540 /examples/BlinkOpenCM/Blink.ino
parentba96840399381b35e20a9fe620602dc4a6fc6be7 (diff)
Add makefile for Robotis OpenCM & update version to 1.6.0
Diffstat (limited to 'examples/BlinkOpenCM/Blink.ino')
-rw-r--r--examples/BlinkOpenCM/Blink.ino18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/BlinkOpenCM/Blink.ino b/examples/BlinkOpenCM/Blink.ino
new file mode 100644
index 0000000..8b37aa0
--- /dev/null
+++ b/examples/BlinkOpenCM/Blink.ino
@@ -0,0 +1,18 @@
+/*
+ Blink
+ Turns an LED on for one second, then off for one second, repeatedly.
+
+ This example code is in the public domain.
+ */
+
+void setup() {
+ // initialize the led pin as an output.
+ pinMode(BOARD_LED_PIN, OUTPUT);
+}
+
+void loop() {
+ digitalWrite(BOARD_LED_PIN, HIGH); // set the LED on
+ delay(1000); // wait for a second
+ digitalWrite(BOARD_LED_PIN, LOW); // set the LED off
+ delay(1000); // wait for a second
+}