Jump to content
43oh

Graphics library for Nokia 5110 - preview


Recommended Posts

I got this working with the Nokia 5110 LCD.

 

Added support for vertical frame buffers so more output devices can be supported. Currently works with NTSC, PAL, VGA, and Nokia 5110.

 

Now has vector font in addition to bitmap font.

 

Still have some work to do before code is ready to release.

 

The 5110 is a passive matrix LCD, so the response time and contrast are not very good. Animation really reveals the weaknesses of this type of display. The response time of a pixel seems to be influenced by the state of adjacent pixels.

 

Link to post
Share on other sites

I am currently using a 5418A because it has 16K RAM and runs at 25 MHz (good for VGA). The code is mostly C, so the amount of flash required depends upon what functions are used. It may not all fit in a G series chip, but a useful subset certainly would.

 

I think the library could be adapted to use SPI/IIC RAM with SPI/IIC LCD. Most of the drawing functions call pixel set/clear/xor functions, so making those functions work with external RAM would support everything except bitmaps.

 

I will try to add support to any hardware that is provided to me. I expect OLED to have much better response time than passive matrix LCD, so animation should look very good.

Link to post
Share on other sites
...It may not all fit in a G series chip, but a useful subset certainly would.

I think the library could be adapted to use SPI/IIC RAM with SPI/IIC LCD. Most of the drawing functions call pixel set/clear/xor functions, so making those functions work with external RAM would support everything except bitmaps...

I was thinking that one way could be limiting the display area to 5 banks of 84 columns or 6 banks of 64 columns, which would probably fit in 2553.

If you could make it work with SPI SRAM, that would be great. My board will have 23Kxx and 2G157 muxs on it. You will set start addr on the LCD, send read instruction with start addr to SRAM, then send command to the controller chip to start the transfer. Controller will activate muxs to switch LCD's data pin from SIMO to SOMI and SRAM's SCLK, set D/C, set LCD's CS, and clock SCLK until required number of bytes are transfered. Controller will use INT signal to inform CPU that the transfer is completed.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...