pausa

Dependencies:   mbed

Fork of primercorte by edson antonio vargas villarreal

Committer:
nicolasrojas
Date:
Wed Jun 06 18:31:04 2018 +0000
Revision:
5:9187685429b3
Parent:
4:244a242e0428
pausa

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ANTONIO_VARGAS 0:0119b611fc51 1 #ifndef MAIN_H
ANTONIO_VARGAS 0:0119b611fc51 2 #define MAIN_H
ANTONIO_VARGAS 0:0119b611fc51 3
ANTONIO_VARGAS 0:0119b611fc51 4
ANTONIO_VARGAS 0:0119b611fc51 5 #include "draw.h"
ANTONIO_VARGAS 0:0119b611fc51 6 #include "memory.h"
ANTONIO_VARGAS 1:6ed951d975cc 7
nicolasrojas 2:c457572a9bb2 8
ANTONIO_VARGAS 0:0119b611fc51 9 // COMANDOS
ANTONIO_VARGAS 0:0119b611fc51 10 // |POS_0|POS_1|POS_2| POS_3 |
ANTONIO_VARGAS 0:0119b611fc51 11 // | #C | a | b | c |
ANTONIO_VARGAS 0:0119b611fc51 12 //
ANTONIO_VARGAS 0:0119b611fc51 13 // #C -> Indica el comando FF, FE, ...
ANTONIO_VARGAS 0:0119b611fc51 14 // a -> es el fin de comando F0 en otros casos es el valor de la coord X
ANTONIO_VARGAS 0:0119b611fc51 15 //b -> Coordenada Y
ANTONIO_VARGAS 0:0119b611fc51 16 // c -> fin de comando F0
ANTONIO_VARGAS 0:0119b611fc51 17
ANTONIO_VARGAS 0:0119b611fc51 18 /*
ANTONIO_VARGAS 0:0119b611fc51 19 prueba 1
ANTONIO_VARGAS 0:0119b611fc51 20 ff f0
ANTONIO_VARGAS 0:0119b611fc51 21
ANTONIO_VARGAS 0:0119b611fc51 22 prueba 2
ANTONIO_VARGAS 0:0119b611fc51 23 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
ANTONIO_VARGAS 0:0119b611fc51 24 ff f0
ANTONIO_VARGAS 0:0119b611fc51 25
ANTONIO_VARGAS 0:0119b611fc51 26 prueba 3
ANTONIO_VARGAS 0:0119b611fc51 27 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
ANTONIO_VARGAS 0:0119b611fc51 28 ff f0
ANTONIO_VARGAS 0:0119b611fc51 29
ANTONIO_VARGAS 0:0119b611fc51 30
ANTONIO_VARGAS 0:0119b611fc51 31 */
ANTONIO_VARGAS 0:0119b611fc51 32
ANTONIO_VARGAS 0:0119b611fc51 33 #define DEBUG 1
ANTONIO_VARGAS 0:0119b611fc51 34
ANTONIO_VARGAS 0:0119b611fc51 35
ANTONIO_VARGAS 0:0119b611fc51 36 void debug_m(char *s , ... );
ANTONIO_VARGAS 0:0119b611fc51 37 uint32_t read_command();
ANTONIO_VARGAS 0:0119b611fc51 38 void init_serial();
ANTONIO_VARGAS 0:0119b611fc51 39 void drawing();
ANTONIO_VARGAS 0:0119b611fc51 40 void saving();
nicolasrojas 4:244a242e0428 41 void pausar();
nicolasrojas 4:244a242e0428 42
nicolasrojas 2:c457572a9bb2 43
ANTONIO_VARGAS 0:0119b611fc51 44
ANTONIO_VARGAS 0:0119b611fc51 45
ANTONIO_VARGAS 0:0119b611fc51 46 /********************* PARAMETROS PARA DEFINIR EL COMMANDO ******************/
ANTONIO_VARGAS 0:0119b611fc51 47 #define CM_DRAWING 0xff
ANTONIO_VARGAS 0:0119b611fc51 48 #define CM_SAVING 0xfe
ANTONIO_VARGAS 0:0119b611fc51 49 #define CM_VERTEX2D 0xfd
ANTONIO_VARGAS 0:0119b611fc51 50 #define CM_DRAW 0xfc
ANTONIO_VARGAS 0:0119b611fc51 51 #define CM_NODRAW 0xfb
ANTONIO_VARGAS 0:0119b611fc51 52 #define CM_STOP 0xfa
ANTONIO_VARGAS 0:0119b611fc51 53 #define CM_END 0xf0
ANTONIO_VARGAS 1:6ed951d975cc 54 #define CM_MOTOR 0xf9
nicolasrojas 2:c457572a9bb2 55 #define CM_PAUSA 0xf1
nicolasrojas 2:c457572a9bb2 56 #define CM_PLAY 0xf2
ANTONIO_VARGAS 0:0119b611fc51 57 #endif // MAIN_H