diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2018-10-07 11:19:56 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-07 11:19:56 +0530 |
| commit | 5a0c80bf0c8fbfd5a997998a7c08ba9596c72a3f (patch) | |
| tree | beea7a066fd1a2a7af74f2fc4447f8b26a34f631 /examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp | |
| parent | fe84c591944f74c902466d813fae0d164761dc59 (diff) | |
| parent | ed608ce658e66b8aa98ab0b0c31582468cab588d (diff) | |
Merge pull request #583 from wingunder/move_core_link_last
Moved CORE_LIB to the last position of the defined linked objects.
Diffstat (limited to 'examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp')
| -rw-r--r-- | examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp b/examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp new file mode 100644 index 0000000..c0ddb88 --- /dev/null +++ b/examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp @@ -0,0 +1,23 @@ +// A derived Blink, that uses an example 3rd party library. +// Turns on an LED on for one second, then off for one second, repeatedly. +// This example code is in the public domain. + +#include <TogglePin.h> + +#ifdef ARDUINO +#if ARDUINO >= 100 +#include "Arduino.h" +#else +#include "WProgram.h" +#endif +#endif // ARDUINO + +int main() +{ + init(); + TogglePin led(13, false); + while (true) { + delay(1000); + led.toggle(); + } +} |
