Simple library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website).
Fork of N5110 by
Diff: N5110.cpp
- Revision:
- 20:07627b054c2d
- Parent:
- 19:ba8addc061ea
- Child:
- 22:5e20f9c16da0
--- a/N5110.cpp Thu Apr 23 18:57:52 2015 +0000 +++ b/N5110.cpp Wed Apr 29 10:31:44 2015 +0000 @@ -404,3 +404,13 @@ } } + +void N5110::clearRect(int x0,int y0,int width,int height) +{ + + for (int i = x0; i < (x0+width); i++) { //x coor + for (int j = y0; j < (y0+height); j++) { //y coor + clearPixel(i,j); //loop through clear all cells in rectangle + } + } +}