Update lcd.c
draw bitmaps inverted
Dieser Commit ist enthalten in:
Ursprung
c7a4bae4f8
Commit
c8dce5e4a7
2
lcd.c
2
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren