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);
|
||||
vTaskDelay(100);
|
||||
nrf_gpio_pin_set(14);
|
||||
lcd->DisplayOff();
|
||||
state = States::Idle;
|
||||
break;
|
||||
case Messages::GoToRunning:
|
||||
lcd->DisplayOn();
|
||||
nrf_gpio_pin_clear(23);
|
||||
nrf_gpio_pin_clear(22);
|
||||
nrf_gpio_pin_clear(14);
|
||||
|
|
Loading…
Reference in a new issue