diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2018-06-22 09:45:03 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-22 09:45:03 +0530 |
| commit | b2d1ff23a2ff6d824aced575401e7b0deace672c (patch) | |
| tree | 0f14d80d0a04dee8dd739a6985fdcfb24039ef82 /examples/DueBlink/DueBlink.ino | |
| parent | 0809b5460617f2217d8b4b0f9a57758e220c429c (diff) | |
| parent | 3f32563683a90d471c7ff97216b000e922851c72 (diff) | |
Merge pull request #567 from tuna-f1sh/due
Support for Arduino Due added
Diffstat (limited to 'examples/DueBlink/DueBlink.ino')
| -rw-r--r-- | examples/DueBlink/DueBlink.ino | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/DueBlink/DueBlink.ino b/examples/DueBlink/DueBlink.ino new file mode 100644 index 0000000..f9a59a9 --- /dev/null +++ b/examples/DueBlink/DueBlink.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 +} |
