Fix Ansteuerung LCD
This commit is contained in:
parent
7002242e80
commit
824bc630cb
@ -166,12 +166,14 @@ namespace ElektronischeLast
|
|||||||
LL_GPIO_ResetOutputPin(GPIOB, PIN_RS | PIN_RW | PIN_E);
|
LL_GPIO_ResetOutputPin(GPIOB, PIN_RS | PIN_RW | PIN_E);
|
||||||
std::uint32_t tmp = command >> 4U;
|
std::uint32_t tmp = command >> 4U;
|
||||||
tmp |= ((~(command >> 4U) & 0xFU) << GPIO_BSRR_BR0_Pos);
|
tmp |= ((~(command >> 4U) & 0xFU) << GPIO_BSRR_BR0_Pos);
|
||||||
|
LL_GPIO_SetOutputPin(GPIOB, tmp);
|
||||||
__NOP();
|
__NOP();
|
||||||
LL_GPIO_SetOutputPin(GPIOB, PIN_E);
|
LL_GPIO_SetOutputPin(GPIOB, PIN_E);
|
||||||
pulse_delay();
|
pulse_delay();
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, PIN_E);
|
LL_GPIO_ResetOutputPin(GPIOB, PIN_E);
|
||||||
tmp = command;
|
tmp = command & 0x0FU;
|
||||||
tmp |= ((~command & 0xFU) << GPIO_BSRR_BR0_Pos);
|
tmp |= ((~command & 0xFU) << GPIO_BSRR_BR0_Pos);
|
||||||
|
LL_GPIO_SetOutputPin(GPIOB, tmp);
|
||||||
__NOP();
|
__NOP();
|
||||||
LL_GPIO_SetOutputPin(GPIOB, PIN_E);
|
LL_GPIO_SetOutputPin(GPIOB, PIN_E);
|
||||||
pulse_delay();
|
pulse_delay();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user