MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / taskInputHandler

Function taskInputHandler

src/main.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73volatile uint16_t tftWidth = TFT_HEIGHT;
74TaskHandle_t xHandle;
75void __attribute__((weak)) taskInputHandler(void *parameter) {
76 auto timer = launcherMillis();
77 while (true) {
78 checkPowerSaveTime();
79 if (!AnyKeyPress || launcherMillis() - timer > 75) {
80 resetGlobals();
81#ifndef DONT_USE_INPUT_TASK
82 InputHandler();
83#endif
84 timer = launcherMillis();
85 }
86 vTaskDelay(pdMS_TO_TICKS(10));
87 }
88}
89
90// More 2nd grade global Variables
91int dimmerSet = 20;

Callers

nothing calls this directly

Calls 4

launcherMillisFunction · 0.85
checkPowerSaveTimeFunction · 0.85
resetGlobalsFunction · 0.85
InputHandlerFunction · 0.50

Tested by

no test coverage detected