From 3e534cee183b81bd3f487c08ab4af8e3f8b546de Mon Sep 17 00:00:00 2001 From: Wouter van Gulik Date: Wed, 11 Oct 2023 08:56:46 +0200 Subject: [PATCH] st7565: Use | 0xB0 instead of +176 --- driver/st7565.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/st7565.c b/driver/st7565.c index ccdce14..9863dc5 100644 --- a/driver/st7565.c +++ b/driver/st7565.c @@ -230,7 +230,7 @@ void ST7565_HardwareReset(void) void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line) { GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_ST7565_A0); - ST7565_LowLevelWrite(Line + 176); + ST7565_LowLevelWrite(Line + 0xB0); ST7565_LowLevelWrite(((Column >> 4) & 0x0F) | 0x10); ST7565_LowLevelWrite((Column >> 0) & 0x0F); SPI_WaitForUndocumentedTxFifoStatusBit();