Library for interfacing to Nokia 5110 LCD display with Image Loader (as found on the SparkFun website).

Revision:
20:8db6aa25f55e
Parent:
19:ba8addc061ea
Child:
21:4cbdc20fea9f
diff -r ba8addc061ea -r 8db6aa25f55e N5110.cpp
--- 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);
 }