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

Function pressBt01

nRFBox_V2/jammer.cpp:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void pressBt01() {
125 static unsigned long last_interrupt_time = 0;
126 unsigned long interrupt_time = millis();
127 if (interrupt_time - last_interrupt_time > 200) {
128 if (channels < 14) {
129 channels++;
130 } else {
131 channels = 1;
132 }
133 //Serial.print("Channel: ");
134 //Serial.println(channels);
135 }
136 last_interrupt_time = interrupt_time;
137}
138
139void pressBt02() {
140 static unsigned long last_interrupt_time = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected