Library for interfacing to Nokia 5110 LCD display with Image Loader (as found on the SparkFun website).
Diff: N5110.h
- Revision:
- 46:6de3ebf5b195
- Parent:
- 45:97e54ea40dac
- Child:
- 48:af12980ac515
diff -r 97e54ea40dac -r 6de3ebf5b195 N5110.h --- a/N5110.h Mon Nov 06 11:48:22 2017 +0000 +++ b/N5110.h Mon Nov 27 15:21:36 2017 +0000 @@ -82,7 +82,7 @@ // draw a line across the display at y = 40 pixels (origin top-left) for (int i = 0; i < WIDTH; i++) { - lcd.setPixel(i,40); + lcd.setPixel(i,40,true); } // need to refresh display after setting pixels or writing strings lcd.refresh(); @@ -90,7 +90,7 @@ // can check status of pixel using getPixel(x,y); lcd.clear(); // clear buffer - lcd.setPixel(2,2); // set random pixel in buffer + lcd.setPixel(2,2,true); // set random pixel in buffer lcd.refresh(); wait(1.0); @@ -101,6 +101,8 @@ } // this one shouldn't be set + lcd.setPixel(3,3,false); // clear random pixel in buffer + lcd.refresh(); pixel_to_test = lcd.getPixel(3,3); if ( pixel_to_test == 0 ) { @@ -414,8 +416,7 @@ int y0, int nrows, int ncols, - int *sprite) - __attribute__((deprecated("Use the Bitmap::render() function instead"))); + int *sprite); private: