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

Function jammerSetup

nRFBox_V2/jammer.cpp:183–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void jammerSetup(){
184 Serial.begin(115200);
185
186 esp_bt_controller_deinit();
187 esp_wifi_stop();
188 esp_wifi_deinit();
189
190 pinMode(BT1, INPUT_PULLUP);
191 pinMode(BT2, INPUT_PULLUP);
192 pinMode(BT3, INPUT_PULLUP);
193 pinMode(BT4, INPUT_PULLUP);
194
195 SPI.begin();
196
197 pinMode(CE_A, OUTPUT);
198 pinMode(CSN_A, OUTPUT);
199
200 pinMode(CE_B, OUTPUT);
201 pinMode(CSN_B, OUTPUT);
202
203 pinMode(CE_C, OUTPUT);
204 pinMode(CSN_C, OUTPUT);
205
206 configure(radioA);
207 configure(radioB);
208 configure(radioC);
209
210 //radio.begin();
211 setRadioParameters();
212 //radio.openWritingPipe(address);
213 //radio.stopListening();
214
215 //Serial.println("Radio configured and ready");
216}
217
218
219void jammerLoop(){

Callers

nothing calls this directly

Calls 2

configureFunction · 0.70
setRadioParametersFunction · 0.70

Tested by

no test coverage detected