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.

Revision:
20:8db6aa25f55e
Parent:
19:ba8addc061ea
Child:
21:4cbdc20fea9f
--- a/N5110.cpp	Thu Apr 23 18:57:52 2015 +0000
+++ b/N5110.cpp	Thu Jan 19 19:42:34 2017 +0000
@@ -90,10 +90,10 @@
 void N5110::setBrightness(float brightness)
 {
     // check whether brightness is within range
-    if (brightness < 0.0)
-        brightness = 0.0;
-    if (brightness > 1.0)
-        brightness = 1.0;
+    if (brightness < 0.0f)
+        brightness = 0.0f;
+    if (brightness > 1.0f)
+        brightness = 1.0f;
     // set PWM duty cycle
     led->write(brightness);
 }