Autor Tema: [APORTE] Fuente de numeros grandes para GLCD  (Leído 2170 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado richardjr

  • PIC12
  • **
  • Mensajes: 69
[APORTE] Fuente de numeros grandes para GLCD
« en: 28 de Diciembre de 2010, 11:10:27 »
Hola a todos, quisiera comprartir con el foro que tanto me ha ayudado, esta fuente que hice para caracteres numericos grandes para usar en GLCD, espero les sirva! (el caracter de $ lo use como terminador de cadena por cuestion interna de software, no tiene otro motivo mas que ese...

Código: [Seleccionar]
unsigned const char uno[]=
{
0x08,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x08,0x00,0x00,
0x00,0x00,0x00,0xfe,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xfe,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x0f,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,'$'};

unsigned const char dos[]=
{
0x10,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x1c,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x0e,0x00,0x0e,0x00,0x00,0x00,
0x00,0x00,0x06,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x07,0x80,0x0f,0x00,0x00,0x00,0x00,0x00,0x07,0x40,0x0f,0x00,
0x00,0x00,0x00,0x00,0x07,0x30,0x0f,0x00,0x00,0x00,0x00,0x00,0x1f,0x1c,0x0f,0x00,0x00,0x00,0x00,0x00,0xff,0x0f,
0x0f,0x00,0x00,0x00,0x00,0x00,0xfe,0x07,0x0f,0x00,0x00,0x00,0x00,0x00,0xfe,0x03,0x0f,0x00,0x00,0x00,0x00,0x00,
0x78,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01,'$'};

unsigned const char tres[]=
{
0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x08,0x80,0x07,0x00,0x00,0x00,0x00,0x00,0x04,0x80,0x0f,0x00,
0x00,0x00,0x00,0x00,0x06,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x82,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,
0x83,0x03,0x0c,0x00,0x00,0x00,0x00,0x00,0xc3,0x03,0x0c,0x00,0x00,0x00,0x00,0x00,0xe7,0x07,0x0c,0x00,
0x00,0x00,0x00,0x00,0xff,0x1f,0x06,0x00,0x00,0x00,0x00,0x00,0xbf,0xff,0x07,0x00,0x00,0x00,0x00,0x00,
0x9e,0xff,0x03,0x00,0x00,0x00,0x00,0x00,0x0c,0xff,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,'$'};

unsigned const char cuatro[]=
{
0x00,0xfc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xef,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xe7,0x00,0x00,
0x00,0x00,0x00,0x00,0xc0,0xe3,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,
0x70,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0xfc,0xff,0x0f,0x00,
0x00,0x00,0x00,0x00,0xfe,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,'$'};


unsigned const char cinco[]=
{
0x80,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0xf0,0x07,0x0f,0x00,0x00,0x00,0x00,0x00,0xfc,0x07,0x0f,0x00,
0x00,0x00,0x00,0x00,0xcf,0x07,0x0e,0x00,0x00,0x00,0x00,0x00,0xcf,0x07,0x0e,0x00,0x00,0x00,0x00,0x00,
0xcf,0x07,0x0c,0x00,0x00,0x00,0x00,0x00,0xcf,0x0f,0x0c,0x00,0x00,0x00,0x00,0x00,0x8f,0x0f,0x0c,0x00,
0x00,0x00,0x00,0x00,0x8f,0x1f,0x0c,0x00,0x00,0x00,0x00,0x00,0x0f,0x3f,0x06,0x00,0x00,0x00,0x00,0x00,
0x0f,0xfc,0x03,0x00,0x00,0x00,0x00,0x00,0x07,0xf8,0x01,'$'};

unsigned const char seis[]=
{
0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0x00,0xe0,0xff,0x07,0x00,0x00,0x00,0x00,0x00,0xf0,
0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xf8,0x03,0x0f,0x00,0x00,0x00,0x00,0x00,0x9c,0x03,0x0c,0x00,0x00,0x00,0x00,0x00,0x8e,0x03,
0x0c,0x00,0x00,0x00,0x00,0x00,0x86,0x03,0x0c,0x00,0x00,0x00,0x00,0x00,0x87,0x07,0x0e,0x00,0x00,0x00,0x00,0x00,0x83,0xff,0x0f,
0x00,0x00,0x00,0x00,0x00,0x03,0xff,0x07,0x00,0x00,0x00,0x00,0x00,0x03,0xff,0x03,0x00,0x00,0x00,0x00,0x00,0x01,0xf8,0x01,'$'};


unsigned const char siete[]=
{
0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,
0x0f,0x00,0x00,0x00,0x00,0x00,0x0f,0xe0,0x0f,0x00,0x00,0x00,0x00,0x00,0x0f,0xfc,0x01,0x00,0x00,0x00,0x00,
0x00,0xcf,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,'$'};


unsigned const char ocho[]=
{
0x78,0xe0,0x03,0x00,0x00,0x00,0x00,0x00,0xfc,0xf0,0x07,0x00,0x00,0x00,0x00,0x00,0xfe,0xfb,0x0f,0x00,0x00,0x00,0x00,
0x00,0xff,0x1f,0x0e,0x00,0x00,0x00,0x00,0x00,0xc3,0x0f,0x0c,0x00,0x00,0x00,0x00,0x00,0x81,0x0f,0x0c,0x00,0x00,0x00,
0x00,0x00,0x81,0x1f,0x0c,0x00,0x00,0x00,0x00,0x00,0x81,0x3f,0x0c,0x00,0x00,0x00,0x00,0x00,0xc3,0xff,0x0f,0x00,0x00,
0x00,0x00,0x00,0xff,0xfc,0x07,0x00,0x00,0x00,0x00,0x00,0x7e,0xf8,0x03,0x00,0x00,0x00,0x00,0x00,0x3c,0xf0,0x01,'$'};


unsigned const char nueve[]=
{
0xf8,0x07,0x08,0x00,0x00,0x00,0x00,0x00,0xfc,0x0f,0x0c,0x00,0x00,0x00,0x00,0x00,0xfe,0x1f,0x0c,0x00,0x00,
0x00,0x00,0x00,0xff,0x1f,0x0c,0x00,0x00,0x00,0x00,0x00,0x87,0x1f,0x0e,0x00,0x00,0x00,0x00,0x00,0x03,0x18,
0x06,0x00,0x00,0x00,0x00,0x00,0x03,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x03,0xd8,0x03,0x00,0x00,0x00,0x00,
0x00,0x3f,0xf8,0x03,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x01,0x00,0x00,0x00,0x00,0x00,0xfe,0xff,0x00,0x00,
0x00,0x00,0x00,0x00,0xfc,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x1f,'$'};


unsigned const char cero[]=
{
0xf0,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xfc,0xff,0x03,0x00,0x00,0x00,0x00,0x00,0xfe,0xff,0x07,0x00,0x00,0x00,
0x00,0x00,0xff,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x0f,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x08,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0e,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x0f,0x00,0x00,0x00,0x00,0x00,0xfe,0xff,0x07,0x00,0x00,0x00,0x00,0x00,0xfc,0xff,0x03,0x00,0x00,0x00,0x00,0x00,
0xf0,0xff,'$'};


Desconectado MLO__

  • Colaborador
  • DsPIC33
  • *****
  • Mensajes: 4581
Re: [APORTE] Fuente de numeros grandes para GLCD
« Respuesta #1 en: 28 de Diciembre de 2010, 11:50:25 »
Hola.

Gracias por el aporte.

Saludos
El papel lo aguanta todo

Desconectado fran_j_P

  • PIC10
  • *
  • Mensajes: 5
Re: [APORTE] Fuente de numeros grandes para GLCD
« Respuesta #2 en: 20 de Abril de 2011, 11:38:02 »
amigo richar y como quedaria el programa completo para mostar esos numero pero ya con una variable


 

anything