MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / select_button_pressed_long

Function select_button_pressed_long

src/PeripheryManager.cpp:195–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void select_button_pressed_long()
196{
197 if (DFPLAYER_ACTIVE)
198 PeripheryManager.playFromFile(DFMINI_MP3_CLICK);
199 if (AP_MODE)
200 {
201 ++MATRIX_LAYOUT;
202 if (MATRIX_LAYOUT < 0)
203 MATRIX_LAYOUT = 2;
204 saveSettings();
205 ESP.restart();
206 }
207 else if (!BLOCK_NAVIGATION)
208 {
209 MenuManager.selectButtonLong();
210 DisplayManager.selectButtonLong();
211 if (DEBUG_MODE)
212 DEBUG_PRINTLN(F("Select button pressed long"));
213 }
214}
215
216void select_button_double()
217{

Callers

nothing calls this directly

Calls 3

saveSettingsFunction · 0.85
playFromFileMethod · 0.80
selectButtonLongMethod · 0.45

Tested by

no test coverage detected