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

Function handleButtonPress

VScode Platformio/src/blejammer.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43const unsigned long debounceDelay = 500;
44
45void IRAM_ATTR handleButtonPress() {
46 unsigned long currentTime = millis();
47 if (currentTime - lastButtonPressTime > debounceDelay) {
48 modeChangeRequested = true;
49 lastButtonPressTime = currentTime;
50 }
51}
52
53void configureRadio(RF24 &radio, const byte* channels, size_t size) {
54 radio.setAutoAck(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected