![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Scheduller Demo
Fork of scheduler-demo-cq-lpc11u35 by
main.cpp
- Committer:
- jr1wfh
- Date:
- 2014-05-18
- Revision:
- 3:d098b01b9dcb
- Parent:
- 2:6b3e85379edd
File content as of revision 3:d098b01b9dcb:
#include "mbed.h" #include "Scheduler.h" #include "led_tsk.h" DigitalIn s1(P0_1); DigitalOut led2(P0_21); int main() { scheduler_startLoop( led1_task ); while(1) { if(s1 == 0){ //ISP SW ON? led2 = !led2; //Green LED ON/OFF taskWait(10); //Chattering wait 10ms while(s1 == 0){ //ISP SW OFF? taskWait(10); //Chattering wait 10ms } } taskWait(20); //Next check wait } }