Autor Tema: Fuentes mas grandes para HDM64GS12.c?  (Leído 2500 veces)

0 Usuarios y 3 Visitantes están viendo este tema.

Desconectado lopb

  • PIC12
  • **
  • Mensajes: 77
    • contactos lopb
Fuentes mas grandes para HDM64GS12.c?
« en: 16 de Diciembre de 2010, 18:38:13 »
Hola, alguien tiene fuentes mas grandes para un lcd de 128x64?
Estaba viendo las maquinas de colectivo y tienen la fuente chica pero un poco mas gruesa.
Necesitaba esa justamente. Linea 71
jaja:D

Desconectado Suky

  • Moderador Local
  • DsPIC33
  • *****
  • Mensajes: 6758
Re: Fuentes mas grandes para HDM64GS12.c?
« Respuesta #1 en: 16 de Diciembre de 2010, 19:34:14 »
Podes colocar Size en 2 en el parámetro de la función si estas usando las librerías de CCS. Otra es crear las fuentes tu mismo y a gusto, pero si cambia el tamaño de los pixeles tienes que realizar la función que la dibuje  ;-)


Saludos!
No contesto mensajes privados, las consultas en el foro

Desconectado lopb

  • PIC12
  • **
  • Mensajes: 77
    • contactos lopb
Re: Fuentes mas grandes para HDM64GS12.c?
« Respuesta #2 en: 17 de Diciembre de 2010, 11:46:59 »
Podes colocar Size en 2 en el parámetro de la función si estas usando las librerías de CCS. Otra es crear las fuentes tu mismo y a gusto, pero si cambia el tamaño de los pixeles tienes que realizar la función que la dibuje  ;-)


Saludos!
gracias suky. Si, el tamaño 2 esta, pero amplifica todo, yo necesito que sean un poco mas gruesas...
sibiripap
:D

Desconectado Suky

  • Moderador Local
  • DsPIC33
  • *****
  • Mensajes: 6758
Re: Fuentes mas grandes para HDM64GS12.c?
« Respuesta #3 en: 17 de Diciembre de 2010, 12:03:25 »
Entonces te toca los más divertido!  :D  :D Hacer la fuente tu mismo y crear la función para dibujarla en el GLCD. También habría que hacer una búsqueda exhaustiva, por ahí alguien ya lo ha realizado  :?

Saludos!
No contesto mensajes privados, las consultas en el foro

Desconectado richardjr

  • PIC12
  • **
  • Mensajes: 69
Re: Fuentes mas grandes para HDM64GS12.c?
« Respuesta #4 en: 28 de Diciembre de 2010, 11:07:50 »
Si te sirve, va de regalo de Navidad una fuente que hice para numeros grandes  :)

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 lopb

  • PIC12
  • **
  • Mensajes: 77
    • contactos lopb
Re: Fuentes mas grandes para HDM64GS12.c?
« Respuesta #5 en: 28 de Diciembre de 2010, 18:28:38 »
Si te sirve, va de regalo de Navidad una fuente que hice para numeros grandes  :)

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,'$'};


gracias, feliz navidad!   :mrgreen: