From c8dce5e4a7c7cee30ff9eafdb69a84ce7a638e9a Mon Sep 17 00:00:00 2001 From: Sylaina Date: Mon, 28 Jan 2019 13:11:27 +0100 Subject: [PATCH] Update lcd.c draw bitmaps inverted --- lcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lcd.c b/lcd.c index cf3bc58..f55b33e 100644 --- a/lcd.c +++ b/lcd.c @@ -435,6 +435,8 @@ void lcd_drawBitmap(uint8_t x, uint8_t y, const uint8_t *picture, uint8_t width, for(i=0; i < width;i++){ if(pgm_read_byte(picture + j * byteWidth + i / 8) & (128 >> (i & 7))){ lcd_drawPixel(x+i, y+j, color); + } else { + lcd_drawPixel(x+i, y+j, color); } } }