Fabio Ferraz Jr
/
mbed_blinky_aula1
21fev2018
Diff: main.cpp
- Revision:
- 0:820ae34e4e46
diff -r 000000000000 -r 820ae34e4e46 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Feb 21 11:17:20 2018 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; + wait(5); + myled = 0; + wait(1); + } +}