Update lcd.c

draw bitmaps inverted
pull/7/head
Sylaina 5 years ago committed by GitHub
parent c7a4bae4f8
commit c8dce5e4a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}
}
}

Loading…
Cancel
Save