Supachai Vorapojpisut
/
le484_2016
Course project for LE484 at Thammasat University, class of 2016
Diff: led_task.cpp
- Revision:
- 11:8b9668e37646
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/led_task.cpp Mon May 08 05:06:11 2017 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "platform.h" + +PwmOut led1(LED1); + +void led1_thread(){ + while(1){ + led1.period(4.0f); + led1.write(0.5f); + } +} + +