| 193 | } |
| 194 | |
| 195 | void blackoutSetup() { |
| 196 | Serial.begin(115200); |
| 197 | |
| 198 | esp_bt_controller_deinit(); |
| 199 | esp_wifi_stop(); |
| 200 | esp_wifi_deinit(); |
| 201 | esp_wifi_disconnect(); |
| 202 | |
| 203 | pinMode(MODE_BUTTON, INPUT_PULLUP); |
| 204 | pinMode(MODE_BUTTON1, INPUT_PULLUP); |
| 205 | pinMode(MODE_BUTTON2, INPUT_PULLUP); |
| 206 | attachInterrupt(digitalPinToInterrupt(MODE_BUTTON), handleButton, FALLING); |
| 207 | attachInterrupt(digitalPinToInterrupt(MODE_BUTTON1), handleButton1, FALLING); |
| 208 | attachInterrupt(digitalPinToInterrupt(MODE_BUTTON2), handleButton2, FALLING); |
| 209 | |
| 210 | initialize_Radios(); |
| 211 | update_OLED(); |
| 212 | } |
| 213 | |
| 214 | void blackoutLoop() { |
| 215 | checkMode(); |
nothing calls this directly
no test coverage detected