| 69 | } |
| 70 | |
| 71 | void ScanChannels(void) { |
| 72 | DIsable(); |
| 73 | // for (int j = 0; j < 10; j++) { |
| 74 | for (int i = 0; i < CHANNELS; i++) { |
| 75 | setregister(NRF24_RF_CH, (128 * i) / CHANNELS); |
| 76 | setrx(); |
| 77 | delayMicroseconds(40); |
| 78 | DIsable(); |
| 79 | if (getregister(NRF24_RPD) > 0) CHannel[i]++; |
| 80 | } |
| 81 | // } |
| 82 | } |
| 83 | |
| 84 | |
| 85 | void writeRegister(uint8_t reg, uint8_t value) { |
no test coverage detected