aboutsummaryrefslogtreecommitdiff
path: root/examples/BlinkOpenCM
diff options
context:
space:
mode:
authorJohn Whittington <john@jbrengineering.co.uk>2017-09-01 12:42:45 +0000
committerJohn Whittington <john@jbrengineering.co.uk>2017-09-01 12:42:45 +0000
commit4c4c9ac2f0d074d9f9ec8d1b2ef82564955513ed (patch)
treea893ba606790c386e099794c0eef1bbec33e1024 /examples/BlinkOpenCM
parent62f2d7081511ec2563fb511414a8cf8051e38737 (diff)
parent5fcd04cdef9b8378fe0a9cafe426321a62d9bdbd (diff)
Merge with upstream
Diffstat (limited to 'examples/BlinkOpenCM')
-rw-r--r--examples/BlinkOpenCM/Blink.ino18
-rw-r--r--examples/BlinkOpenCM/Makefile7
2 files changed, 25 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
+}
diff --git a/examples/BlinkOpenCM/Makefile b/examples/BlinkOpenCM/Makefile
new file mode 100644
index 0000000..0f7b285
--- /dev/null
+++ b/examples/BlinkOpenCM/Makefile
@@ -0,0 +1,7 @@
+BOARD_TAG = cm904
+ARDUINO_LIBS =
+
+#MONITOR_PORT = /dev/ttyACM0
+#OPENCMIDE_DIR = /where/you/installed/robotis_opencm
+
+include ../../OpenCM.mk