Jonathan Moreno
/
mbed_blinker
mbed blinker code
Diff: main.cpp
- Revision:
- 0:97226e931339
- Child:
- 1:60c416914fc0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Nov 06 18:37:15 2018 +0000 @@ -0,0 +1,14 @@ +// Version 1 + +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}