Fix Ansteuerung LCD

This commit is contained in:
Carsten Keller 2024-06-09 17:58:19 +02:00
parent 7002242e80
commit 824bc630cb
Signed by: carsten
GPG Key ID: DF06343A3A9B8868

View File

@ -166,12 +166,14 @@ namespace ElektronischeLast
LL_GPIO_ResetOutputPin(GPIOB, PIN_RS | PIN_RW | PIN_E);
std::uint32_t tmp = command >> 4U;
tmp |= ((~(command >> 4U) & 0xFU) << GPIO_BSRR_BR0_Pos);
LL_GPIO_SetOutputPin(GPIOB, tmp);
__NOP();
LL_GPIO_SetOutputPin(GPIOB, PIN_E);
pulse_delay();
LL_GPIO_ResetOutputPin(GPIOB, PIN_E);
tmp = command;
tmp = command & 0x0FU;
tmp |= ((~command & 0xFU) << GPIO_BSRR_BR0_Pos);
LL_GPIO_SetOutputPin(GPIOB, tmp);
__NOP();
LL_GPIO_SetOutputPin(GPIOB, PIN_E);
pulse_delay();