Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 28:4091516537e4, committed 2017-02-15
- 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 *