After buying one of the Nokia 3310 LCD with joystick shields from Nuelectronics.com I wanted the library to do more in the way of graphical functions. After re-writing the library, cleaning it up and renaming all the functions I now have a library that can do what I want it to do.
The library includes functions for:
- Text display
- Large digits
- Plot single pixel
- Draw line between two points
- Draw a rectangle given two opposite corners
- Draw a filled rectangle
- Draw circle
- Display a bitmap from flash memory
- Clear an area of the screen
The library has been updated by John Crouchley to inherit the Print class to produce an easier method of printing strings, numbers and general text formatting. Other changes include:
- Allow for multiple SPI devices
- Move get_key into the class
- Fix bug in writeChar
- Additional bounds checking
I have now made some further updates to the library, the changes are:
- Created new big font. This is much neater looking than original.
- Updated 5×7 font as % was one row too low.
- Updated example to include print functions and degree symbol
This is a minor update to enable the library to work with newer displays available from Nuelectronics. Previous library may may show a very dark display. The temperature coefficient and contrast values have been updated in the initialisation function.
The example application is based on the original Nuelectronics example but displays the values from a real temperature/humidity sensor, the SHT11, using a modified library from http://www.practicalarduino.com/news/id/211. The modification is the addition of the readDewPoint function. The menu also includes a demo option which gives a run through the graphical functions by drawing circles, lines, rectangles, displaying a full screen bitmap and a simple animation using bitmaps.
- nokia_3310_lcd.zip – Updated library with Johns changes, second and third update changes.
- SHT1x.zip – Updated library for accessing temp/humidity sensor.