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

Function pressBt04

VScode Platformio/src/jammer.cpp:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void pressBt04() {
147 static unsigned long last_interrupt_time = 0;
148 unsigned long interrupt_time = millis();
149 if (interrupt_time - last_interrupt_time > 200) {
150 paLevelIndex = (paLevelIndex + 1) % 4; // Cycle through power levels
151 setRadioParameters();
152 Serial.println("Power level changed");
153 }
154 last_interrupt_time = interrupt_time;
155}
156
157void configure(RF24 &radio) {
158 radio.begin();

Callers

nothing calls this directly

Calls 1

setRadioParametersFunction · 0.70

Tested by

no test coverage detected