Josep Bernad Espinosa
/
mbed-os-example-blinky
test
Diff: main.cpp
- Revision:
- 0:4e6ebad3be98
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 17 13:31:14 2018 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +Serial pc(USBTX, USBRX); + +DigitalOut led1(LED1); + +// main() runs in its own thread in the OS +int main() { + while (true) { + led1 = !led1; + pc.printf("5 characters will be echoed. Start typing. \r\n"); + wait(1.5); + } +} +