From edf90842c55435a23151c74ef274e71d69b5e510 Mon Sep 17 00:00:00 2001 From: stepcut Date: Wed, 22 Oct 2014 12:23:52 -0500 Subject: [PATCH] Added BlinkTeensy example which uses the Teensy.mk file. --- examples/BlinkTeensy/Blink.ino | 19 +++++++++++++++++++ examples/BlinkTeensy/Makefile | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 examples/BlinkTeensy/Blink.ino create mode 100644 examples/BlinkTeensy/Makefile diff --git a/examples/BlinkTeensy/Blink.ino b/examples/BlinkTeensy/Blink.ino new file mode 100644 index 0000000..f9a59a9 --- /dev/null +++ b/examples/BlinkTeensy/Blink.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 +} diff --git a/examples/BlinkTeensy/Makefile b/examples/BlinkTeensy/Makefile new file mode 100644 index 0000000..84ae31f --- /dev/null +++ b/examples/BlinkTeensy/Makefile @@ -0,0 +1,5 @@ +ARDUINO_DIR = /home/stepcut/n-heptane/projects/arduino/arduino-1.0.6 +BOARD_TAG = teensy31 +ARDUINO_LIBS = + +include ../../Teensy.mk