MCPcopy Create free account
hub / github.com/BruceDevices/firmware / wakeUpScreen

Function wakeUpScreen

src/core/display.cpp:114–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112void turnOffDisplay() { setBrightness(0, false); }
113
114bool wakeUpScreen() {
115 previousMillis = millis();
116 if (isScreenOff) {
117 isScreenOff = false;
118 dimmer = false;
119 getBrightness();
120 vTaskDelay(pdMS_TO_TICKS(200));
121 return true;
122 } else if (dimmer) {
123 dimmer = false;
124 getBrightness();
125 vTaskDelay(pdMS_TO_TICKS(200));
126 return true;
127 }
128 return false;
129}
130
131/***************************************************************************************
132** Function name: displayRedStripe

Callers 15

InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
interface.cppFile · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85
InputHandlerFunction · 0.85

Calls 2

millisFunction · 0.85
getBrightnessFunction · 0.85

Tested by

no test coverage detected