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:
- 14:124051c4524a
- Parent:
- 13:4226825e2060
- Child:
- 17:a0b884f78802
--- a/main.cpp Thu Oct 12 00:38:03 2017 +0000 +++ b/main.cpp Thu Oct 12 01:13:42 2017 +0000 @@ -107,6 +107,12 @@ command.printf("draw cicle: "); #endif } +void command_home(){ +#if DEBUG + command.printf("pos home "); + #endif + home(); +} void command_rstepservo(){ #if DEBUG command.printf("config rstepservo: "); @@ -116,6 +122,7 @@ #if DEBUG command.printf("config tiempo entre movimientos de los servos: "); #endif + put_sstime(buffer_cmd[POS_1]); } void command_stop(){ #if DEBUG @@ -150,6 +157,7 @@ case COMMAND_LINE: command_line(); break; case COMMAND_RECTANGLE: command_rectangle(); break; case COMMAND_CICLE: command_cicle(); break; + case COMMAND_HOME: command_home(); break; case COMMAND_RSTEPSERVO: command_rstepservo(); break; case COMMAND_SS_TIME: command_sstime(); break; case COMMAND_STOP : command_stop(); break;