Disabled brightness
Dependents: 2ndYearProject-DistanceSensor
Fork of N5110 by
Revision 18:74ceaa974b3b, committed 2016-05-04
- Comitter:
- ll13j7b
- Date:
- Wed May 04 21:19:52 2016 +0000
- Parent:
- 17:1cb311c6689d
- Commit message:
- Added refreshes to library
Changed in this revision
N5110.cpp | Show annotated file Show diff for this revision Revisions of this file |
N5110.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1cb311c6689d -r 74ceaa974b3b N5110.cpp --- 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();
diff -r 1cb311c6689d -r 74ceaa974b3b N5110.h --- a/N5110.h Sun Mar 27 22:48:33 2016 +0000 +++ b/N5110.h Wed May 04 21:19:52 2016 +0000 @@ -190,7 +190,6 @@ * Clears the screen. */ void clear(); - void clearCursor(); /** Turn on normal video mode (default) * Black on white */