Library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website).
Fork of N5110 by
Diff: Bitmap.cpp
- Revision:
- 44:cd9bc22f656d
- Parent:
- 42:596c207519de
--- a/Bitmap.cpp Tue Mar 21 11:46:14 2017 +0000 +++ b/Bitmap.cpp Wed May 03 12:52:37 2017 +0000 @@ -90,7 +90,11 @@ // Find the required value of the pixel at the given location within // the bitmap data and then write it to the LCD screen int pixel = get_pixel(bitmap_row, bitmap_col); - lcd.setPixel(screen_col, screen_row, pixel); + // Since 2 in my bitmaps dictates transaprent pixel, do not set pixel + // on lcd if the pixel value is 2 + if (pixel != 2) { + lcd.setPixel(screen_col, screen_row, pixel); + } } } } \ No newline at end of file