From: Keith Packard Date: Sun, 28 Jan 2024 08:17:27 +0000 (-0800) Subject: altos/st7565: Set default contrast to 13 X-Git-Tag: 1.9.18~2^2~23 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=7977ff5291c6161d37b7c1b1548258df2e58c09e altos/st7565: Set default contrast to 13 This seems slightly better than 16. Might need to actually keep this in config space. Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_st7565.c b/src/drivers/ao_st7565.c index 7540297c..3eec610d 100644 --- a/src/drivers/ao_st7565.c +++ b/src/drivers/ao_st7565.c @@ -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];