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

Function analyzerSetup

VScode Platformio/src/analyzer.cpp:128–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128void analyzerSetup(){
129
130 Serial.begin(115200);
131
132 esp_bt_controller_deinit();
133 esp_wifi_stop();
134 esp_wifi_deinit();
135
136 pinMode(CE, OUTPUT);
137 pinMode(CSN, OUTPUT);
138
139 SPI.begin(18, 19, 23, 17);
140 SPI.setDataMode(SPI_MODE0);
141 SPI.setFrequency(10000000);
142 SPI.setBitOrder(MSBFIRST);
143
144 u8g2.begin();
145 u8g2.clearBuffer();
146 u8g2.sendBuffer();
147
148 digitalWrite(CSN, HIGH);
149 digitalWrite(CE, LOW);
150
151 DIsable();
152
153 powerUP();
154 writeRegister(NRF24_EN_AA, 0x00);
155 writeRegister(NRF24_RF_SETUP, 0x0F);
156
157}
158
159void analyzerLoop(){
160

Callers

nothing calls this directly

Calls 3

DIsableFunction · 0.70
powerUPFunction · 0.70
writeRegisterFunction · 0.70

Tested by

no test coverage detected