![](/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
Revision 15:c347d12a472b, committed 2018-04-10
- Comitter:
- integracion_hw
- Date:
- Tue Apr 10 20:32:53 2018 +0000
- Parent:
- 14:249826741896
- Commit message:
- Se cambia pin de entrada digital a PA10(cable blanco)
Changed in this revision
constantes.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/constantes.cpp Fri Mar 23 08:25:40 2018 +0000 +++ b/constantes.cpp Tue Apr 10 20:32:53 2018 +0000 @@ -28,7 +28,7 @@ const char GTOUT_TXT[] = "ACK:GTOUT"; const char ABORT_TXT[] = "ABORTAR"; const char GV300_OK[] = "OK"; -const int PULSOS_APAGAR = 5; +const int PULSOS_APAGAR = 2; // CONSTANTES DE PUERTO SERIAL const int BUFF_SIZE = 498;
--- 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 {