Skip to content

Commit

Permalink
revised the pico scanner example
Browse files Browse the repository at this point in the history
missed this one
  • Loading branch information
2bndy5 committed Mar 3, 2024
1 parent 3cb8324 commit e779879
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions examples_pico/scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* good channel for your application.
*
* Inspired by cpixip.
* See http://arduino.cc/forum/index.php/topic,54795.0.html
* See https://forum.arduino.cc/t/poor-mans-2-4-ghz-scanner/54846
*/

/*
Expand Down Expand Up @@ -134,12 +134,9 @@ void initRadio()
radio.setAutoAck(false); // Don't acknowledge arbitrary signals
radio.disableCRC(); // Accept any signal we find
radio.setAddressWidth(2); // A reverse engineering tactic (not typically recommended)
radio.openReadingPipe(0, noiseAddress[0]);
radio.openReadingPipe(1, noiseAddress[1]);
radio.openReadingPipe(2, noiseAddress[2]);
radio.openReadingPipe(3, noiseAddress[3]);
radio.openReadingPipe(4, noiseAddress[4]);
radio.openReadingPipe(5, noiseAddress[5]);
for (uint8_t i = 0; i < 6; ++i) {
radio.openReadingPipe(i, noiseAddress[i]);
}

// To set the radioNumber via the Serial terminal on startup
printf("Select your data rate. ");
Expand Down

0 comments on commit e779879

Please sign in to comment.