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

Function pressBt01

VScode Platformio/src/jammer.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void pressBt01() {
111 static unsigned long last_interrupt_time = 0;
112 unsigned long interrupt_time = millis();
113 if (interrupt_time - last_interrupt_time > 200) {
114 if (channels < 14) {
115 channels++;
116 } else {
117 channels = 1;
118 }
119 Serial.print("Channel: ");
120 Serial.println(channels);
121 }
122 last_interrupt_time = interrupt_time;
123}
124
125void pressBt02() {
126 static unsigned long last_interrupt_time = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected