윤 인재
/
test_Thread
test
main.cpp
- Committer:
- injaeyoon
- Date:
- 2020-09-19
- Revision:
- 0:87fed0658150
File content as of revision 0:87fed0658150:
#include "mbed.h" #include "DRV8825.h" #include <Thread.h> DigitalOut led1(LED1); DigitalOut led2(D7); Thread thread; void led1_thread(){ while(1) { led1 = !led1; wait(0.1); } } int main() { thread.start(led1.thread); while(1) { led2 = !led2; wait(0.5); } }