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.h
- Revision:
- 12:b780833f517e
- Parent:
- 10:d2bf51fdc68a
- Child:
- 13:4226825e2060
--- a/main.h Wed Oct 11 23:52:22 2017 +0000 +++ b/main.h Thu Oct 12 00:16:35 2017 +0000 @@ -21,7 +21,7 @@ -/********************** PARAMETROS DEFINIR EL COMMANDO *********************/ +/********************* PARAMETROS PARA DEFINIR EL COMMANDO ******************/ #define BUFF_SIZE 6 //Tamaño del buffer #define COMM_N 0 // Número de Comando @@ -29,14 +29,15 @@ #define POS_2 2 #define POS_3 3 #define POS_4 4 +#define POS_END 5 -/********************** PARAMETROS COMMANDO LED +++++++++*********************/ +/********************** PARAMETROS COMMANDO LED ******************************/ -// el comando indica cuados segundo, milisegundo y debe estar +// el comando indica cuantos segundo y milisegundo debe estar // encendido el LED // |POS_i|POS_0|POS_1|POS_2| POS_3 | POS_4 | POS_5 | -// | < | #C | S1 | S0 | mS1 | mS0 | > | +// | < | 00 | S1 | S0 | mS1 | mS0 | > | //COMANDOS LED #define COMMAND_LED 0 @@ -45,11 +46,26 @@ #define TIME_LED_mS1 POS_3 // tiempo del comando en mili segundo hi #define TIME_LED_mS0 POS_3 // tiempo del comando en mili segundo lo -//COMANDOS DRAW +/********************** PARAMETROS COMMANDO DRAW DOT *************************/ + +// el comando indica la posicion en X y Y que dibuja el punto + +// |POS_i|POS_0|POS_1|POS_2| POS_3 | POS_4 | POS_5 | +// | < | 01 | x | y | N.A | N.A | > | + +//COMANDOS DOT #define COMMAND_DOT 1 #define DOT_POS_X POS_1 // Posición de la cordenada X #define DOT_POS_Y POS_2 // posicion de la cordenada Y +/********************* PARAMETROS COMMANDO DRAW LINE *************************/ + +// el comando indica la posicion en Xi y Yi donde inicia la linea +// y la posición final de la linea con Xf y Yf +// +// |POS_i|POS_0|POS_1|POS_2| POS_3 | POS_4 | POS_5 | +// | < | 02 | xi | yi | xf | yf | > | + // COMANDOS LINE #define COMMAND_LINE 2 #define LINE_POS_Xi POS_1 // Posición de la cordenada inicial X @@ -57,6 +73,15 @@ #define LINE_POS_Xf POS_3 // Posición de la cordenada final X #define LINE_POS_Yf POS_4 // posicion de la cordenada final Y + +/********************* PARAMETROS COMMANDO DRAW RECTANGLE*********************/ + +// el comando indica la posicion en X y Y donde inicia el rectangulo +// y el ancho y alto del rectangulo +// +// |POS_i|POS_0|POS_1|POS_2| POS_3 | POS_4 | POS_5 | +// | < | 03 | x | y | width |height | > | + // COMANDOS RECTANGLE #define COMMAND_RECTANGLE 3 #define REC_POS_X POS_1 // Posición de la cordenada inicial X @@ -66,8 +91,8 @@ // COMANDOS -#define CICLE_NC 4 -#define HOME_NC 5 +#define COMMAND_CICLE 4 +#define COMMAND_HOME 5 #endif // MAIN_H \ No newline at end of file
