![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
BLE fota Lamp Demo
Dependencies: mbed-rtos mbed mbed_fota_fan_control
Fork of mbed_fota_fan_control by
Diff: main.cpp
- Revision:
- 0:a1f6b1ba8a1e
- Child:
- 1:5cf3a6c969be
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jun 22 07:19:59 2015 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +Serial hostpc(USBTX,USBRX); +Serial device(p13,p14); + +DigitalOut myled(LED1); + +int main() { + BleMsgHandler MYFOTA(&device,&hostpc); + + MYFOTA.PrintTitle(); + + + while(1) { + myled = 1; + wait(0.5); + myled = 0; + wait(0.5); + } +}