Nokia 5110 display

Nokia 5110The Nokia 5110 display is a very cheap monochrome display with 48x84 pixel resolution. The libraries I found for this display use the display resolution the way the data is written into the display being 6 lines times 84 columns. I have written a new library that uses a shadow display array to store the display contents and allows to adress the display by the (x,y) coordinates within the 48x84 resolution.

The library is a first release, so expect errors to show up. A short demo is included and I will refine the library within the coming weeks.

The library assumes that the display is mounted on the 4x4 keypad. A library covering this keypad and a demo will follow soon. However, the library is written in a way, that any pin connection of the display is supported. One small disadvantage of the keypad is that the display LED backlight is on all the time (hard wired).

Nokia 5110 displayThe library can be donloaded here.

 

After my first coding for the library I checked with the UTFT library of Henning Karlsen to see how he has done certain thing sn and discovered that he has created two libraries for the Nokia 5110 display. So most of my work has already been done but I learned a lot while writing this lib. I will continue to refine this library profiting from the coding that Henning has done. However, I want to mention his source as I want to recognize the work Henning has done. I can only encourage everyone using Hennings libraries to use the donation facility to thank him for his work.

 

There are two libraries from Henning Karlsen: LCD5110_Basic and LCD5110_Graph. You will have to update the include statement in the .cpp and .h files to be

#if defined(__AVR__)
    #if defined(ARDUINO) && ARDUINO >= 100
        #include "Arduino.h"
    #else
        #include "WProgram.h"
    #endif
#else
    #include "WProgram.h"
#endif