Hi Guys, as all we know, Nokia 51100/3310 is very popular LCD module in hobbyists. It is a 84×48 pixel monochrome LCD display. We had provided the Nokia 5110 library before, but it just support one size font. There is a enhanced Nokia 5110/3310 library which written by “Henning Karlsen”.
The basic library have support for text, 2 larger sizes of numbers and bitmaps three type function. We had test in Nokia 5110 on our Multi LCD Shield, it’s all running OK, just modified the IO define. Change pin define as below:
// This program requires a Nokia 5110 LCD module.
// It is assumed that the LCD module is connected to
// the following pins.
// SCK - Pin 8
// MOSI - Pin 9
// DC - Pin 10
// RST - Pin 11
// CS - Pin 12
LCD5110 myGLCD(0,1,2,3,4); //Change pin for Multi LCD Shield
OK！ Let’s take a look at the effect.
1. Show the bitmap
2. Show two larger sizes of numbers
3. Show text and Symbol
At last, if you want show bitmap, you must convert the picture to array. There we support you a convert tool to do this.Download, Operation ： “ To convert image from bitmap file (or other standard graphics file format) to data array select from File menu command ‘Load image’. Next, select byte orientation (for example : vertical for KS0108, SED1520, SPLC0501C etc; horizontal for : T6963C, SED1335 etc). If in data array must be image size (width and height) select ‘Include size’ checkbox and specify endianness of size (for example : Little endian for AVR; Big endian for ST7). Size are placed in two 16-bit variables at the begin of data array. Next, specify pixels/byte parameter. If display can support miscellaneous font size (displays with T6963C controller) image can be converted to array of bytes with specified amount of pixels in each byte. At last select from “File” menu command “Save output”. Data array will be saved in specified file. ”
Reference post from:
Get the latest version of the Nokia5110 enhanced libraries: http://www.henningkarlsen.com/electronics/library.php?id=45
ImageConverter 5110: http://www.henningkarlsen.com/electronics/t_imageconverter_5110.php
The other imageconverter tool: http://en.radzio.dxp.pl/bitmap_converter/