From 5bcb64ade92b1ed8e6e0bc5760fe064cc26a49c3 Mon Sep 17 00:00:00 2001 From: Karl Semich Date: Tue, 11 Jul 2017 12:38:43 +0000 Subject: Add makefile for Robotis OpenCM & update version to 1.6.0 --- examples/BlinkOpenCM/Blink.ino | 18 ++++++++++++++++++ examples/BlinkOpenCM/Makefile | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 examples/BlinkOpenCM/Blink.ino create mode 100644 examples/BlinkOpenCM/Makefile (limited to 'examples') 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 -- cgit v1.2.3