San Yune
/
Chapter004_TRobotCtrlA
Chapter004_TRobotCtrlA
Diff: main.cpp
- Revision:
- 7:90969ee19974
- Parent:
- 2:b60cb847489c
diff -r 4e6ec83d3c83 -r 90969ee19974 main.cpp --- a/main.cpp Wed Sep 13 11:30:50 2017 +0000 +++ b/main.cpp Tue Apr 02 08:02:43 2019 +0000 @@ -1,12 +1,6 @@ #include "mbed.h" -DigitalOut myled(LED1); +int main() +{ -int main() { - while(1) { - myled = 1; // LED is ON - wait(0.2); // 200 ms - myled = 0; // LED is OFF - wait(1.0); // 1 sec - } }