Send command DisplayOn/Off to LCD when enabling/disabling the display.

This commit is contained in:
JF 2020-01-02 14:48:33 +01:00
parent e08cfe07c7
commit 16c7ce8929

View File

@ -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);