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 01-04EntregaPrimerCorte by
Diff: main.h
- Revision:
- 1:526bdd5faa37
- Parent:
- 0:89b318e49395
--- a/main.h Sat Mar 17 00:57:56 2018 +0000 +++ b/main.h Tue Sep 04 02:15:49 2018 +0000 @@ -2,40 +2,12 @@ #define MAIN_H -#include "draw.h" -#include "memory.h" +#include "mover.h" + //****************************************************************************** // Desarrollado por ferney beltran fbeltran@ecci.edu.co //****************************************************************************** -//***************************************************************************** -// 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 - -// Nota: El fin de comando no se almacena -//****************************************************************************** - -/* -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 @@ -43,17 +15,8 @@ void debug_m(char *s , ... ); uint32_t read_command(); void init_serial(); -void drawing(); -void saving(); + +void moving(); -/********************* 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 - #endif // MAIN_H \ No newline at end of file
