Supachai Vorapojpisut
/
le484_2016
Course project for LE484 at Thammasat University, class of 2016
led_task.cpp@11:8b9668e37646, 2017-05-08 (annotated)
- Committer:
- natanich
- Date:
- Mon May 08 05:06:11 2017 +0000
- Revision:
- 11:8b9668e37646
led_task
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
natanich | 11:8b9668e37646 | 1 | #include "mbed.h" |
natanich | 11:8b9668e37646 | 2 | #include "platform.h" |
natanich | 11:8b9668e37646 | 3 | |
natanich | 11:8b9668e37646 | 4 | PwmOut led1(LED1); |
natanich | 11:8b9668e37646 | 5 | |
natanich | 11:8b9668e37646 | 6 | void led1_thread(){ |
natanich | 11:8b9668e37646 | 7 | while(1){ |
natanich | 11:8b9668e37646 | 8 | led1.period(4.0f); |
natanich | 11:8b9668e37646 | 9 | led1.write(0.5f); |
natanich | 11:8b9668e37646 | 10 | } |
natanich | 11:8b9668e37646 | 11 | } |
natanich | 11:8b9668e37646 | 12 | |
natanich | 11:8b9668e37646 | 13 |