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

Function pressBt04

nRFBox_V2/jammer.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void pressBt04() {
161 static unsigned long last_interrupt_time = 0;
162 unsigned long interrupt_time = millis();
163 if (interrupt_time - last_interrupt_time > 200) {
164 paLevelIndex = (paLevelIndex + 1) % 4; // Cycle through power levels
165 setRadioParameters();
166 //Serial.println("Power level changed");
167 }
168 last_interrupt_time = interrupt_time;
169}
170
171void configure(RF24 &radio) {
172 radio.begin();

Callers

nothing calls this directly

Calls 1

setRadioParametersFunction · 0.70

Tested by

no test coverage detected