Jusuf Delalić / N5110

Dependents:   PONG

Files at this revision

API Documentation at this revision

Comitter:
valavanisalex
Date:
Wed Feb 15 22:10:21 2017 +0000
Parent:
27:0d8d90936b4c
Child:
29:5bc91bd44c77
Commit message:
getPixel should be const (i.e., it doesn't modify anything in the LCD object)

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
--- a/N5110.cpp	Tue Feb 07 21:50:25 2017 +0000
+++ b/N5110.cpp	Wed Feb 15 22:10:21 2017 +0000
@@ -184,7 +184,7 @@
     }
 }
 
-int N5110::getPixel(int x, int y)
+int N5110::getPixel(int x, int y) const
 {
     if (x>=0 && x<WIDTH && y>=0 && y<HEIGHT) {  // check within range
         // return relevant bank and mask required bit
--- a/N5110.h	Tue Feb 07 21:50:25 2017 +0000
+++ b/N5110.h	Wed Feb 15 22:10:21 2017 +0000
@@ -279,7 +279,7 @@
 *       0           - pixel is clear
 *       1    - pixel is set
 */
-int getPixel(int x, int y);
+int getPixel(int x, int y) const;
 
 /** Refresh display
 *