diff options
| author | Sudar <sudar@sudarmuthu.com> | 2014-10-24 09:02:51 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2014-10-24 09:02:51 +0530 |
| commit | 3eee9851bb176d0695d3dd091d6ebf8412ac382f (patch) | |
| tree | 8df90c03c25ecc0a83eb21af64846b135223401a /examples | |
| parent | 8d443f62c88e4f211dbfeab33df876887fa0f53b (diff) | |
| parent | daacad1d77306a37d3df5423feca27d3f5d730f7 (diff) | |
Merge pull request #281 from stepcut/teensy.mk
Add support for Teensyduino 3.x
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 |
