![](/media/cache/profiles/21766877_1290537521056150_733801759139139096_n_1.jpg.50x50_q85.jpg)
testing
Diff: main.cpp
- Revision:
- 0:c72ced9fc66a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Aug 08 05:09:46 2017 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +Serial pc(USBTX, USBRX); // tx, rx + + +int main() { + pc.baud (115200); + pc.printf("Hello User!\n"); + while(1) { + myled = 1; // LED is ON + wait(0.05); // 200 ms + myled = 0; // LED is OFF + wait(0.05); // 1 sec + } +}