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

Function blackoutSetup

nRFBox_V2/blackout.cpp:195–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void 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
214void blackoutLoop() {
215 checkMode();

Callers

nothing calls this directly

Calls 2

initialize_RadiosFunction · 0.85
update_OLEDFunction · 0.85

Tested by

no test coverage detected