![](/media/cache/profiles/1be11c5070263813a6c631ecdba885ef.jpg.50x50_q85.png)
Cambio de pin de entrada digital a PA10
Dependencies: BufferedSerial PinDetect mbed
Fork of DTK-MEGAPACA_NUCLEO by
Diff: main.cpp
- Revision:
- 15:c347d12a472b
- Parent:
- 14:249826741896
--- a/main.cpp Fri Mar 23 08:25:40 2018 +0000 +++ b/main.cpp Tue Apr 10 20:32:53 2018 +0000 @@ -19,7 +19,7 @@ /* CONFIGURACIÓN DE HARDWARE ************************************** */ BufferedSerial gv300(USBTX, USBRX); -PinDetect input(PA_9); //PC_13 +PinDetect input(PA_10); //PC_13 DigitalOut myled(LED1); // DECLARACIÓN DE VARIABLES @@ -62,7 +62,7 @@ // Validar puslsos. if (contador_pulsos >= 1) { myled = 1; - wait(5.0); + wait(7.0); if (contador_pulsos == PULSOS_APAGAR) { apagar = true; } else {