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:
- 20:b7f2e428b24c
- Parent:
- 14:124051c4524a
--- a/main.h Thu Oct 19 23:43:31 2017 +0000
+++ b/main.h Fri Oct 20 00:50:00 2017 +0000
@@ -21,6 +21,7 @@
+#define DEBUG 1
/********************* PARAMETROS PARA DEFINIR EL COMMANDO ******************/
#define BUFF_SIZE 6 //Tamaño del buffer
@@ -91,7 +92,22 @@
// COMANDOS
+/********************* PARAMETROS COMMANDO DRAW CICLE*********************/
+
+// el comando indica la posicion en X y Y del centro del circulo
+// y r es el radio del circlo
+//
+// |POS_i|POS_0|POS_1|POS_2| POS_3 | POS_4 | POS_5 |
+// | < | 03 | x | y | r | xxx | > |
+
+
#define COMMAND_CICLE 4
+
+#define CICLE_POS_X POS_1 // Posición de la coordenada central X
+#define CICLE_POS_Y POS_2 // Posición de la cordenada central de y
+#define CICLE_POS_R POS_3 // radio del circulo
+
+
#define COMMAND_HOME 5
#define COMMAND_RSTEPSERVO 6 //RESOLUCIÓN; número de lineas que dibuja para
// la figura completa
