Add automatic red and black night mode for color screens
Default to one hour after sunset through sunrise, using fresh cached GPS or recent direct RF neighbor locations. Provide saved CLI and WebConfig controls with a small integer solar approximation and no additional framebuffer.
This commit is contained in:
1 parent
94139c79be
commit
fb73e3afac
49 files changed
+4072
-2421
No files matched your search
@@ -234,7 +234,13 @@ void UITask::loop() {
|
||||
_startup_complete = true;
|
||||
}
|
||||
const bool morse_timing = mesh::morseTimingActive(activeSensorMesh().getProfileRadio());
|
||||
#ifdef MESHCORE_HAS_COLOR_DISPLAY
|
||||
const bool screen_was_on = _display->isOn();
|
||||
#endif
|
||||
if (_display->servicePower(board.isExternalPowered() || board.isUsbHostConnected())) {
|
||||
#ifdef MESHCORE_HAS_COLOR_DISPLAY
|
||||
if (screen_was_on != _display->isOn())
|
||||
#endif
|
||||
resetRadioProfileDisplayPage();
|
||||
_last_refresh = millis() - 1000u;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user