nicolas rojas
/
segundo_copy
pausa
Fork of primercorte by
main.h
- Committer:
- ANTONIO_VARGAS
- Date:
- 2018-04-20
- Revision:
- 1:6ed951d975cc
- Parent:
- 0:0119b611fc51
- Child:
- 2:c457572a9bb2
File content as of revision 1:6ed951d975cc:
#ifndef MAIN_H #define MAIN_H #include "draw.h" #include "memory.h" // COMANDOS // |POS_0|POS_1|POS_2| POS_3 | // | #C | a | b | c | // // #C -> Indica el comando FF, FE, ... // a -> es el fin de comando F0 en otros casos es el valor de la coord X //b -> Coordenada Y // c -> fin de comando F0 /* prueba 1 ff f0 prueba 2 fe f0 fd 00 00 f0 fc f0 fd 00 32 f0 fd 32 32 f0 fd 32 00 f0 fd 00 00 f0 fb f0 fa f0 ff f0 prueba 3 fe f0 fd 00 00 f0 fc f0 fd 00 0A f0 fd 32 0A f0 fd 32 14 f0 fd 00 14 f0 fd 00 1E f0 fd 32 1E f0 fd 32 28 f0 fd 00 28 f0 fa f0 ff f0 */ #define DEBUG 1 void debug_m(char *s , ... ); uint32_t read_command(); void init_serial(); void drawing(); void saving(); /********************* PARAMETROS PARA DEFINIR EL COMMANDO ******************/ #define CM_DRAWING 0xff #define CM_SAVING 0xfe #define CM_VERTEX2D 0xfd #define CM_DRAW 0xfc #define CM_NODRAW 0xfb #define CM_STOP 0xfa #define CM_END 0xf0 #define CM_MOTOR 0xf9 #endif // MAIN_H