Library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website).
Dependents: LV7_LCDtest LV7_Grupa5_Tim003_Zadatak1 lv7_Grupa5_Tim008_zad1 LV7_PAI_Grupa5_tim10_Zadatak1 ... more
This library is designed to make it easy to interface an mbed with a Nokia 5110 LCD display.
These can be found at Sparkfun (https://www.sparkfun.com/products/10168) and Adafruit (http://www.adafruit.com/product/338).
The library uses the SPI peripheral on the mbed which means it is much faster sending data to the display than other libraries available on other platforms that use software SPI.
The library can print strings as well as controlling individual pixels, meaning that both text and primitive graphics can be displayed.
History
Undo overloaded constructor
2020-01-22, by eencae [Wed, 22 Jan 2020 13:17:33 +0000] rev 51
Undo overloaded constructor
Added overloaded constructor for Gamepad2
2020-01-22, by eencae [Wed, 22 Jan 2020 12:50:25 +0000] rev 50
Added overloaded constructor for Gamepad2
Changed default contrast (0.55). This seems to work better with the majority of screens.
2018-03-19, by eencae [Mon, 19 Mar 2018 13:44:23 +0000] rev 49
Changed default contrast (0.55). This seems to work better with the majority of screens.
Re-generated documentation.
2018-02-21, by eencae [Wed, 21 Feb 2018 09:35:25 +0000] rev 48
Re-generated documentation.
Added floating-point literals to remove warnings. Added in setContrast method.
2017-12-20, by eencae [Wed, 20 Dec 2017 13:51:38 +0000] rev 47
Added floating-point literals to remove warnings. Added in setContrast method.
Remove deprecated tag for drawSprite (used in ELEC1620 teaching).; ; Updated example code to use new setPixel(x,y,state) format.
2017-11-27, by eencae [Mon, 27 Nov 2017 15:21:36 +0000] rev 46
Remove deprecated tag for drawSprite (used in ELEC1620 teaching).; ; Updated example code to use new setPixel(x,y,state) format.
Added example for new setContrast method. This can be used to set contrast in range of 0.0 to 1.0. 0.4 appears to be a decent default, but may need tweaking for different displays.; ; The init method also includes private methods that can be tweaked.
2017-11-06, by eencae [Mon, 06 Nov 2017 11:48:22 +0000] rev 45
Added example for new setContrast method. This can be used to set contrast in range of 0.0 to 1.0. 0.4 appears to be a decent default, but may need tweaking for different displays.; ; The init method also includes private methods that can be tweaked.
Separated out contrast, bias and temp coefficient methods. Modified init method to take this into account. Can now dynamically control contrast at run-time which makes it easier to account for natural variation between individual LCD displays.
2017-11-01, by eencae [Wed, 01 Nov 2017 20:48:05 +0000] rev 44
Separated out contrast, bias and temp coefficient methods. Modified init method to take this into account. Can now dynamically control contrast at run-time which makes it easier to account for natural variation between individual LCD displays.
Fix line rendering when direction is negative
2017-03-21, by valavanisalex [Tue, 21 Mar 2017 11:46:14 +0000] rev 43
Fix line rendering when direction is negative
setPixel() now accepts a state parameter. clearPixel() deprecated
2017-03-21, by valavanisalex [Tue, 21 Mar 2017 10:43:19 +0000] rev 42
setPixel() now accepts a state parameter. clearPixel() deprecated