| 108 | } |
| 109 | |
| 110 | void 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 | |
| 125 | void pressBt02() { |
| 126 | static unsigned long last_interrupt_time = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected