aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstepcut <jeremy@n-heptane.com>2014-10-22 12:23:52 -0500
committerstepcut <jeremy@n-heptane.com>2014-10-22 12:23:52 -0500
commitedf90842c55435a23151c74ef274e71d69b5e510 (patch)
tree3e52ef01f9e770b5625e226dcbd255baa3d9f0c0
parentb6eb4a86863023a2fa55a7f7596b8091ec04d8a6 (diff)
Added BlinkTeensy example which uses the Teensy.mk file.
-rw-r--r--examples/BlinkTeensy/Blink.ino19
-rw-r--r--examples/BlinkTeensy/Makefile5
2 files changed, 24 insertions, 0 deletions
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