jhonatan angel
/
Arana
abrayan
main.h@0:89b318e49395, 2018-03-17 (annotated)
- Committer:
- fabeltranm
- Date:
- Sat Mar 17 00:57:56 2018 +0000
- Revision:
- 0:89b318e49395
- Child:
- 1:526bdd5faa37
ok codigo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fabeltranm | 0:89b318e49395 | 1 | #ifndef MAIN_H |
fabeltranm | 0:89b318e49395 | 2 | #define MAIN_H |
fabeltranm | 0:89b318e49395 | 3 | |
fabeltranm | 0:89b318e49395 | 4 | |
fabeltranm | 0:89b318e49395 | 5 | #include "draw.h" |
fabeltranm | 0:89b318e49395 | 6 | #include "memory.h" |
fabeltranm | 0:89b318e49395 | 7 | //****************************************************************************** |
fabeltranm | 0:89b318e49395 | 8 | // Desarrollado por ferney beltran fbeltran@ecci.edu.co |
fabeltranm | 0:89b318e49395 | 9 | //****************************************************************************** |
fabeltranm | 0:89b318e49395 | 10 | |
fabeltranm | 0:89b318e49395 | 11 | //***************************************************************************** |
fabeltranm | 0:89b318e49395 | 12 | // COMANDOS |
fabeltranm | 0:89b318e49395 | 13 | // |POS_0|POS_1|POS_2| POS_3 | |
fabeltranm | 0:89b318e49395 | 14 | // | #C | a | b | c | |
fabeltranm | 0:89b318e49395 | 15 | // |
fabeltranm | 0:89b318e49395 | 16 | // #C -> Indica el comando FF, FE, ... |
fabeltranm | 0:89b318e49395 | 17 | // a -> es el fin de comando F0 en otros casos es el valor de la coord X |
fabeltranm | 0:89b318e49395 | 18 | //b -> Coordenada Y |
fabeltranm | 0:89b318e49395 | 19 | // c -> fin de comando F0 |
fabeltranm | 0:89b318e49395 | 20 | |
fabeltranm | 0:89b318e49395 | 21 | // Nota: El fin de comando no se almacena |
fabeltranm | 0:89b318e49395 | 22 | //****************************************************************************** |
fabeltranm | 0:89b318e49395 | 23 | |
fabeltranm | 0:89b318e49395 | 24 | /* |
fabeltranm | 0:89b318e49395 | 25 | prueba 1 |
fabeltranm | 0:89b318e49395 | 26 | ff f0 |
fabeltranm | 0:89b318e49395 | 27 | |
fabeltranm | 0:89b318e49395 | 28 | prueba 2 |
fabeltranm | 0:89b318e49395 | 29 | 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 |
fabeltranm | 0:89b318e49395 | 30 | ff f0 |
fabeltranm | 0:89b318e49395 | 31 | |
fabeltranm | 0:89b318e49395 | 32 | prueba 3 |
fabeltranm | 0:89b318e49395 | 33 | 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 |
fabeltranm | 0:89b318e49395 | 34 | ff f0 |
fabeltranm | 0:89b318e49395 | 35 | |
fabeltranm | 0:89b318e49395 | 36 | |
fabeltranm | 0:89b318e49395 | 37 | |
fabeltranm | 0:89b318e49395 | 38 | */ |
fabeltranm | 0:89b318e49395 | 39 | |
fabeltranm | 0:89b318e49395 | 40 | #define DEBUG 1 |
fabeltranm | 0:89b318e49395 | 41 | |
fabeltranm | 0:89b318e49395 | 42 | |
fabeltranm | 0:89b318e49395 | 43 | void debug_m(char *s , ... ); |
fabeltranm | 0:89b318e49395 | 44 | uint32_t read_command(); |
fabeltranm | 0:89b318e49395 | 45 | void init_serial(); |
fabeltranm | 0:89b318e49395 | 46 | void drawing(); |
fabeltranm | 0:89b318e49395 | 47 | void saving(); |
fabeltranm | 0:89b318e49395 | 48 | |
fabeltranm | 0:89b318e49395 | 49 | |
fabeltranm | 0:89b318e49395 | 50 | /********************* PARAMETROS PARA DEFINIR EL COMMANDO ******************/ |
fabeltranm | 0:89b318e49395 | 51 | #define CM_DRAWING 0xff |
fabeltranm | 0:89b318e49395 | 52 | #define CM_SAVING 0xfe |
fabeltranm | 0:89b318e49395 | 53 | #define CM_VERTEX2D 0xfd |
fabeltranm | 0:89b318e49395 | 54 | #define CM_DRAW 0xfc |
fabeltranm | 0:89b318e49395 | 55 | #define CM_NODRAW 0xfb |
fabeltranm | 0:89b318e49395 | 56 | #define CM_STOP 0xfa |
fabeltranm | 0:89b318e49395 | 57 | #define CM_END 0xf0 |
fabeltranm | 0:89b318e49395 | 58 | |
fabeltranm | 0:89b318e49395 | 59 | #endif // MAIN_H |