X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_st7565.h;h=b5627f3be24cf8340c949ddf19fc8f78b56eb54f;hb=bb3bfea5462d3f3e1a0a5f4645f67996054a78a3;hp=b961c56b6b72b6e1e03117390337b2836c8ec704;hpb=c8e02fea0b6de30c3929bb1551e7de02b7047f3d;p=fw%2Faltos diff --git a/src/drivers/ao_st7565.h b/src/drivers/ao_st7565.h index b961c56b..b5627f3b 100644 --- a/src/drivers/ao_st7565.h +++ b/src/drivers/ao_st7565.h @@ -81,11 +81,18 @@ #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); +void +ao_st7565_set_brightness(uint8_t val); + +uint8_t +ao_st7565_get_brightness(void); + void ao_st7565_init(void);