los primeros ejers con ticker
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:e64057ed9080
diff -r 000000000000 -r e64057ed9080 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Apr 09 14:01:44 2019 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +//Hacer parpadear un led verde cada 0.25s con ticker + +DigitalOut myled(LED2); +Ticker charin; +void mav(); + +int main() { + + charin.attach(&mav, 0.25); + + while(1) { + } +} +void mav () { + myled = !myled; + } \ No newline at end of file