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

Function handleButton2

nRFBox_V2/blackout.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void IRAM_ATTR handleButton2() {
76 unsigned long currentTime = millis();
77 if (currentTime - lastPressTime > debounceDelay) {
78 if (current == DEACTIVE_MODE) {
79 current = ACTIVE_MODE;
80 } else {
81 current = DEACTIVE_MODE;
82 }
83 lastPressTime = currentTime;
84 }
85}
86
87void configure_Radio(RF24 &radio, const byte *channels, size_t size) {
88 radio.setAutoAck(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected