Course project for LE484 at Thammasat University, class of 2016

Committer:
vsupacha
Date:
Mon May 08 05:11:22 2017 +0000
Revision:
12:845639da2f03
Parent:
11:8b9668e37646
Fix wrong code

Who changed what in which revision?

UserRevisionLine numberNew 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