1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Unicorn GLCD demo.

Discussion in 'Microcontrollers' started by Pommie, Jun 20, 2007.

  1. crocu

    crocu Member

    Joined:
    Feb 20, 2009
    Messages:
    118
    Likes:
    1
    Location:
    France
    Would you please explain me how Putchar works, i cannot get the small font you posted working properly

    The characters are not readable , i think it needs some modification in the display function, but don't know what should be modified.
     
  2. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,013
    Likes:
    317
    Location:
    Brisbane Australia
    ONLINE
    I don't have time right now or the setup to test it but, hopefully, I should be able to get around to it in the next few days.

    Mike.
     
  3. ahpan

    ahpan New Member

    Joined:
    Mar 4, 2013
    Messages:
    35
    Likes:
    0
    Hi Guys,

    I am using this GLCD library (found on CCS forum) and it is working fine. But could I know, how can I change the font size from 8x5 to 32x20(or bigger than this). In order to do that I reckon, the other functions also need to be modified.

    I got one function PutChar32x20 and I got the font for numeric value but I haven't got the alphabetic font for this function.Where Can I find the bigger font? I have tried yo use mickroElektronica GLCD font creator but output is completely different than the expected.

    I have attached fonts_glcd and GLCD for your reference. I would also like mention that I .

    Help is appreciated.
    Cheers
     

    Attached Files:

  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. ahpan

    ahpan New Member

    Joined:
    Mar 4, 2013
    Messages:
    35
    Likes:
    0

    Hello folks,

    I have changed the size of font from 8x5 to 32x20 and everything working perfect. I have attached all the related file.

    What I have done with the font of 8x5 size:

    1. The code for Digit 1 is
    0xFF,0xBD,0x80,0xBF,0xFF,0x55,0x55, // 49 1

    2. As Mike mentioned in post #345 http://www.electro-tech-online.com/threads/unicorn-glcd-demo.30617/ that
    so the hex code for Digit 1 looks like as below:

    3. write first bit 4 times in a row and column.

    4. Final code will look like.

    5. The PutChar32x20 and PutMessage32x20 functions are defined to print the character on the display.

    Cheers
     

    Attached Files:

Share This Page