Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 02_LAB_serial_protocol by
Diff: main.cpp
- Revision:
- 9:3a8624147a4c
- Parent:
- 8:cd9b52716920
- Child:
- 10:846a16647b9a
diff -r cd9b52716920 -r 3a8624147a4c main.cpp --- a/main.cpp Sat Sep 30 14:29:33 2017 +0000 +++ b/main.cpp Sat Sep 30 14:33:24 2017 +0000 @@ -77,20 +77,32 @@ } -void command_led(int tm) +void command_led(uint8_t tm) { + //EJEMPLO DE COMANDO - led=1; + #if DEBUG + command.printf("%i, segundos", tm); + #endif + led=1; wait(tm); led=0; } void command_exe() { + #if DEBUG + command.printf("Ejecutando comando: "); + #endif switch (buffer_command[COMM_N]){ -case (LED_NC): command_led(buffer_command[INITPARAMETER]); +case (LED_NC): + #if DEBUG + command.printf("LED on\n"); + #endif + + command_led(buffer_command[INITPARAMETER]); break; case (DOT_NC): #if DEBUG