![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork of https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
main.cpp
- Committer:
- kadonotakashi
- Date:
- 2017-12-04
- Revision:
- 45:f730263c5ce1
- Parent:
- 44:4ebd764e1db9
File content as of revision 45:f730263c5ce1:
#include "mbed.h" DigitalOut led1(LED1); void led1_thread(void const *argument) { while(true){ led1=!led1; Thread::wait(1000); } } //Serial pc(USBTX, USBRX); // tx, rx // main() runs in its own thread in the OS int main() { Thread thread(led1_thread); while (true) { // pc.printf("main thread \r\n"); printf("main thread \r\n"); Thread::wait(3000); } }