![](/media/cache/group/etherplug2.png.50x50_q85.png)
Hello world program (step 0) for the nRF51 and nRF52 developer kits used in the IoT Empire research workshop.
Diff: main.cpp
- Revision:
- 0:e7d3031b16e3
- Child:
- 1:3ce7d0b39f17
diff -r 000000000000 -r e7d3031b16e3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 28 16:29:44 2017 +0200 @@ -0,0 +1,11 @@ +#include "mbed.h" + +DigitalOut Led1(LED1); + +// main() runs in its own thread in the OS +int main() { + while (true) { + Led1 = !Led1; + wait(0.25); + } +}