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

Function ScanChannels

nRFBox_V2/analyzer.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void ScanChannels(void) {
74 DIsable();
75 // for (int j = 0; j < 10; j++) {
76 for (int i = 0; i < CHANNELS; i++) {
77 setNeoPixelColour("purple");
78 setregister(NRF24_RF_CH, (128 * i) / CHANNELS);
79 setrx();
80 delayMicroseconds(40);
81 DIsable();
82 if (getregister(NRF24_RPD) > 0) CHannel[i]++;
83 }
84 setNeoPixelColour("0");
85 // }
86}
87
88
89void writeRegister(uint8_t reg, uint8_t value) {

Callers 1

analyzerLoopFunction · 0.70

Calls 5

setNeoPixelColourFunction · 0.85
DIsableFunction · 0.70
setregisterFunction · 0.70
setrxFunction · 0.70
getregisterFunction · 0.70

Tested by

no test coverage detected