From: Keith Packard Date: Sat, 27 Jan 2024 23:30:27 +0000 (-0800) Subject: altos: Bump ST7565 speed to 20MHz X-Git-Tag: 1.9.18~2^2~37 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=3687628cdd964a5e6729b8c9506efa5e2e9d8a84 altos: Bump ST7565 speed to 20MHz Go as fast as we can manage Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_st7565.h b/src/drivers/ao_st7565.h index 1dad97cc..b5627f3b 100644 --- a/src/drivers/ao_st7565.h +++ b/src/drivers/ao_st7565.h @@ -81,7 +81,8 @@ #define ST7565_BOOSTER_RATIO_SET 0xf8 #define ST7565_NOP 0xe3 -#define AO_ST7565_SPI_SPEED ao_spi_speed(AO_ST7565_SPI_BUS, 10000000) +/* Max 50ns SPI clock time */ +#define AO_ST7565_SPI_SPEED ao_spi_speed(AO_ST7565_SPI_BUS, 20000000) void ao_st7565_update(struct ao_bitmap *bitmap);