blinky example for NXP rapid IoT prototyping kit https://www.nxp.com/design/designs/nxp-rapid-iot-prototyping-kit:IOT-PROTOTYPING Read more at https://www.hackster.io/marcomerli/riotwear-mbed-2b2011
This is the blinky example for NXP rapid IoT prototyping kit, based on the hexiwear mbed platform. https://www.nxp.com/design/designs/nxp-rapid-iot-prototyping-kit:IOT-PROTOTYPING
Diff: main.cpp
- Revision:
- 78:ddf5cff958fa
- Parent:
- 29:0b58d21e87d6
- Child:
- 79:0431b9fd3dc0
--- a/main.cpp Wed Sep 26 13:30:02 2018 +0100 +++ b/main.cpp Wed Nov 20 21:33:47 2019 +0000 @@ -1,11 +1,13 @@ #include "mbed.h" -DigitalOut led1(LED1); +DigitalOut led_red(LED_RED, 1); // LED1 = LED_RED, 1 --> OFF, 0 --> ON +DigitalOut led_blue(LED_BLUE, 1); // LED3 = LED_BLUE, 1 --> OFF, 0 --> ON // main() runs in its own thread in the OS int main() { while (true) { - led1 = !led1; + led_red = !led_red; + led_blue = !led_red; wait(0.5); } }