Disabled brightness

Dependents:   2ndYearProject-DistanceSensor

Fork of N5110 by Craig Evans

Revision:
18:74ceaa974b3b
Parent:
17:1cb311c6689d
--- a/N5110.cpp	Sun Mar 27 22:48:33 2016 +0000
+++ b/N5110.cpp	Wed May 04 21:19:52 2016 +0000
@@ -266,16 +266,6 @@
         }
     }
 }
-// function to clear only part of the screen (where the cursor is)
-void N5110::clearCursor()
-{
-    int i,j;  
-    for (i=65; i<WIDTH; i++) {  // loop through the banks and set the buffer to 0
-        for (j=0; j<BANKS; j++) {
-            buffer[i][j]=0;
-        }
-    }
-}
 
 
 // function to plot array on display
@@ -288,7 +278,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.0));
+        setPixel(i,47 - int(array[i]*47.0f));
     }
 
     refresh();