Karlo Siladi
/
blinky
Test publishing
Diff: main.cpp
- Revision:
- 0:734cb8f86667
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jan 03 11:46:50 2019 +0100 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut led1(p24); + +// main() runs in its own thread in the OS +int main() +{ + while (true) { + // Blink LED and wait 0.5 seconds + led1 = !led1; + wait(0.5f); + } +} \ No newline at end of file