Send command DisplayOn/Off to LCD when enabling/disabling the display.
This commit is contained in:
parent
e08cfe07c7
commit
16c7ce8929
1 changed files with 2 additions and 0 deletions
|
@ -125,9 +125,11 @@ void DisplayApp::Refresh() {
|
||||||
nrf_gpio_pin_set(22);
|
nrf_gpio_pin_set(22);
|
||||||
vTaskDelay(100);
|
vTaskDelay(100);
|
||||||
nrf_gpio_pin_set(14);
|
nrf_gpio_pin_set(14);
|
||||||
|
lcd->DisplayOff();
|
||||||
state = States::Idle;
|
state = States::Idle;
|
||||||
break;
|
break;
|
||||||
case Messages::GoToRunning:
|
case Messages::GoToRunning:
|
||||||
|
lcd->DisplayOn();
|
||||||
nrf_gpio_pin_clear(23);
|
nrf_gpio_pin_clear(23);
|
||||||
nrf_gpio_pin_clear(22);
|
nrf_gpio_pin_clear(22);
|
||||||
nrf_gpio_pin_clear(14);
|
nrf_gpio_pin_clear(14);
|
||||||
|
|
Loading…
Reference in a new issue