altos/st7565: Set default contrast to 13
authorKeith Packard <keithp@keithp.com>
Sun, 28 Jan 2024 08:17:27 +0000 (00:17 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
This seems slightly better than 16. Might need to actually keep this
in config space.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_st7565.c

index 7540297cb3f686b6147048c3f493d1e36f90c85c..3eec610da804b7a292d1fe8d74a2fe6b2540c8a2 100644 (file)
@@ -128,7 +128,7 @@ ao_st7565_setup(void)
        ao_delay(AO_MS_TO_TICKS(10));
        ao_st7565_instruction(ST7565_RESISTOR_RATIO_SET(5));
        ao_st7565_instruction(ST7565_DISPLAY_ON);
-       ao_st7565_set_brightness(0x10);
+       ao_st7565_set_brightness(13);
 }
 
 static uint8_t rotbuf[AO_ST7565_WIDTH];