Pieter Vandevoorde
/
mbed-os-example-red_green_blue
blinky with 3 colors
Fork of mbed-os-example-mbed5-blinky by
main.cpp
- Committer:
- Pieter56
- Date:
- 2016-11-16
- Revision:
- 17:f1532314d1a9
- Parent:
- 8:bb09890333fe
- Child:
- 18:d15cf1cad4c9
File content as of revision 17:f1532314d1a9:
#include "mbed.h" DigitalOut led1(LED1, 0); DigitalOut led2(LED2, 1); // main() runs in its own thread in the OS // (note the calls to Thread::wait below for delays) int main() { while (true) { Thread::wait(1000); led1 = !led1; led2 = !led2; } }