MCPcopy Create free account
hub / github.com/cifertech/nRFBox / checkMode

Function checkMode

nRFBox_V2/blackout.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void checkMode() {
184 if (ChangeRequested) {
185 ChangeRequested = false;
186 current_Mode = static_cast<OperationMode>((current_Mode == 0) ? 7 : (current_Mode - 1));
187 update_OLED();
188 } else if (ChangeRequested1) {
189 ChangeRequested1 = false;
190 current_Mode = static_cast<OperationMode>((current_Mode + 1) % 8);
191 update_OLED();
192 }
193}
194
195void blackoutSetup() {
196 Serial.begin(115200);

Callers 1

blackoutLoopFunction · 0.85

Calls 1

update_OLEDFunction · 0.85

Tested by

no test coverage detected