| 167 | } |
| 168 | |
| 169 | void jammerSetup(){ |
| 170 | Serial.begin(115200); |
| 171 | |
| 172 | esp_bt_controller_deinit(); |
| 173 | esp_wifi_stop(); |
| 174 | esp_wifi_deinit(); |
| 175 | |
| 176 | pinMode(BT1, INPUT_PULLUP); |
| 177 | pinMode(BT2, INPUT_PULLUP); |
| 178 | pinMode(BT3, INPUT_PULLUP); |
| 179 | pinMode(BT4, INPUT_PULLUP); |
| 180 | |
| 181 | SPI.begin(); |
| 182 | |
| 183 | pinMode(CE_A, OUTPUT); |
| 184 | pinMode(CSN_A, OUTPUT); |
| 185 | |
| 186 | pinMode(CE_B, OUTPUT); |
| 187 | pinMode(CSN_B, OUTPUT); |
| 188 | |
| 189 | pinMode(CE_C, OUTPUT); |
| 190 | pinMode(CSN_C, OUTPUT); |
| 191 | |
| 192 | u8g2.begin(); |
| 193 | u8g2.clearBuffer(); |
| 194 | u8g2.sendBuffer(); |
| 195 | |
| 196 | |
| 197 | configure(radioA); |
| 198 | configure(radioB); |
| 199 | configure(radioC); |
| 200 | |
| 201 | //radio.begin(); |
| 202 | setRadioParameters(); |
| 203 | //radio.openWritingPipe(address); |
| 204 | //radio.stopListening(); |
| 205 | |
| 206 | Serial.println("Radio configured and ready"); |
| 207 | } |
| 208 | |
| 209 | |
| 210 | void jammerLoop(){ |
nothing calls this directly
no test coverage detected