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.
main.h
- Committer:
- fabeltranm
- Date:
- 2018-03-17
- Revision:
- 0:89b318e49395
- Child:
- 1:526bdd5faa37
File content as of revision 0:89b318e49395:
#ifndef MAIN_H
#define MAIN_H
#include "draw.h"
#include "memory.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
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
#endif // MAIN_H