mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-05-18 16:01:18 +03:00
st7565: Use | 0xB0 instead of +176
This commit is contained in:
parent
101297b3a0
commit
3e534cee18
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user