![](/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.
main.cpp
- Committer:
- michaesc
- Date:
- 2017-03-28
- Revision:
- 1:3ce7d0b39f17
- Parent:
- 0:e7d3031b16e3
File content as of revision 1:3ce7d0b39f17:
#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); } }