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

Function fadeOutScreen

src/core/powerSave.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#define SCREEN_OFF_DELAY 5000
7
8void fadeOutScreen(int startValue) {
9 for (int brightValue = startValue; brightValue >= 0; brightValue -= 1) {
10 setBrightness(max(brightValue, 0), false);
11 delay(5);
12 }
13 turnOffDisplay();
14}
15
16void checkPowerSaveTime() {
17 if (bruceConfig.dimmerSet == 0) return;

Callers 2

checkPowerSaveTimeFunction · 0.85
sleepModeOnFunction · 0.85

Calls 2

setBrightnessFunction · 0.85
turnOffDisplayFunction · 0.85

Tested by

no test coverage detected