los primeros ejers con ticker
Dependencies: mbed
main.cpp
- Committer:
- Franmaver
- Date:
- 2019-04-09
- Revision:
- 0:e64057ed9080
File content as of revision 0:e64057ed9080:
#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; }