creo que es otro ticker
Dependencies: mbed
main.cpp
- Committer:
- Franmaver
- Date:
- 2019-04-09
- Revision:
- 0:170563028efc
File content as of revision 0:170563028efc:
#include "mbed.h" //Hacer la siguiente secuencia Rojo 0.1ON, 0.9OFF DigitalOut myled(LED1); Ticker maver; void charin (){ static int i = 0; myled = 1; i++; if(i == 9){ myled = 0; i = 0; } } int main() { maver.attach (&charin, 0.1); while(1) { } }