Fix kerning in setup screen for backlight

This fixes the inverting of the first two pixel on the setup screen
when the backlight setting is selected.
This commit is contained in:
finga 2021-09-12 01:04:10 +02:00
parent d75d230541
commit 14dd301657

View file

@ -426,18 +426,19 @@ static void lcd_setup(void) {
lcd_write_kerning(2, contrast_selected);
lcd_write_symbol_page(&sym_colon, i, contrast_selected);
lcd_write_kerning(2, contrast_selected);
lcd_write_kerning(9, false);
lcd_write_integer_page(value_contrast, 3, i, change_contrast_selected);
lcd_write_kerning(16, false);
lcd_write_integer_page(value_contrast, 2, i, change_contrast_selected);
lcd_write_kerning(2, change_contrast_selected);
}
for (uint8_t i = 0; i < 2; i++) {
SPI_PORT &= ~(1 << LCD_CD);
lcd_write(0x02);
lcd_write(0x00);
lcd_write(0x10);
lcd_write(0xB4 + i);
SPI_PORT |= (1 << LCD_CD);
lcd_write_kerning(2, backlight_selected);
lcd_write_symbol_page(&sym_b, i, backlight_selected);
lcd_write_kerning(2, backlight_selected);
lcd_write_symbol_page(&sym_a, i, backlight_selected);