From 14dd3016575ab5903fdba96ddcd7c130fb245479 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 12 Sep 2021 01:04:10 +0200 Subject: [PATCH] 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. --- firmware/src/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/src/main.c b/firmware/src/main.c index b15be21..c3baf01 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -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);