Library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website). Used & amended by D.Leaming, University of Lincoln, December 2021 v01

Revision:
46:6de3ebf5b195
Parent:
45:97e54ea40dac
Child:
47:2eb1a863ebed
--- a/N5110.cpp	Mon Nov 06 11:48:22 2017 +0000
+++ b/N5110.cpp	Mon Nov 27 15:21:36 2017 +0000
@@ -361,7 +361,7 @@
         // elements are normalised from 0.0 to 1.0, so multiply
         // by 47 to convert to pixel range, and subtract from 47
         // since top-left is 0,0 in the display geometry
-        setPixel(i,47 - int(array[i]*47.0f));
+        setPixel(i,47 - int(array[i]*47.0f),true);
     }
 
 }
@@ -381,14 +381,14 @@
 
         // if transparent, just draw outline
         if (fill == FILL_TRANSPARENT) {
-            setPixel( x + x0,  y + y0);
-            setPixel(-x + x0,  y + y0);
-            setPixel( y + x0,  x + y0);
-            setPixel(-y + x0,  x + y0);
-            setPixel(-y + x0, -x + y0);
-            setPixel( y + x0, -x + y0);
-            setPixel( x + x0, -y + y0);
-            setPixel(-x + x0, -y + y0);
+            setPixel( x + x0,  y + y0,true);
+            setPixel(-x + x0,  y + y0,true);
+            setPixel( y + x0,  x + y0,true);
+            setPixel(-y + x0,  x + y0,true);
+            setPixel(-y + x0, -x + y0,true);
+            setPixel( y + x0, -x + y0,true);
+            setPixel( x + x0, -y + y0,true);
+            setPixel(-x + x0, -y + y0,true);
         } else {  // drawing filled circle, so draw lines between points at same y value
 
             int type = (fill==FILL_BLACK) ? 1:0;  // black or white fill