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:
- 5:bf9591a365a4
- Parent:
- 4:bcc2d1bebb95
- Child:
- 6:cb6b868465c3
--- a/main.cpp Wed Apr 26 18:42:11 2017 +0000 +++ b/main.cpp Wed Apr 26 18:45:43 2017 +0000 @@ -81,6 +81,15 @@ } +void command_motor(uint8_t nm,uint8_t grados) +{ + // aca se debe modificar el codigo del motor + //EJEMPLO DE COMANDO + led=1; + wait(1); + led=0; + +} int main() { #if DEBUG command.printf("inicio con debug\n"); @@ -93,10 +102,7 @@ if (val== '<'){ Read_command(); if (check_command()){ - //EJEMPLO DE COMANDO - led=1; - wait(1); - led=0; + command_motor(buffer_command[COMM_NUM_MOTOR],buffer_command[COMM_GRADOS_MOTOR]); } }