diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/BlinkTeensy/Blink.ino | 19 | ||||
| -rw-r--r-- | examples/BlinkTeensy/Makefile | 4 |
2 files changed, 23 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..1d59ef2 --- /dev/null +++ b/examples/BlinkTeensy/Makefile @@ -0,0 +1,4 @@ +BOARD_TAG = teensy31 +ARDUINO_LIBS = + +include ../../Teensy.mk |
