![](/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:
- 1:3ce7d0b39f17
- Parent:
- 0:e7d3031b16e3
--- a/main.cpp Tue Mar 28 16:29:44 2017 +0200 +++ b/main.cpp Tue Mar 28 14:32:15 2017 +0000 @@ -1,11 +1,20 @@ #include "mbed.h" DigitalOut Led1(LED1); +DigitalOut Led2(LED2); +DigitalOut Led3(LED3); +DigitalOut Led4(LED4); // main() runs in its own thread in the OS int main() { while (true) { Led1 = !Led1; wait(0.25); + Led2 = !Led2; + wait(0.25); + Led4 = !Led4; + wait(0.25); + Led3 = !Led3; + wait(0.25); } -} +} \ No newline at end of file