Skip to content

Commit

Permalink
tested arduino scanner and pico scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Mar 3, 2024
1 parent 2ec4620 commit b6088f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/scanner/scanner.ino
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void loop(void) {
// Send a number over Serial to begin Constant Carrier Wave output
// Configure the power amplitude level below
if (Serial.available()) {
uint8_t c = Serial.parseInt();
int8_t c = Serial.parseInt();
if (c >= 0) {
c = min(125, max(0, c)); // clamp channel to supported range
constCarrierMode = 1;
Expand All @@ -152,7 +152,7 @@ void loop(void) {
radio.stopConstCarrier();
radio.setAddressWidth(2); // reset address width
radio.openReadingPipe(0, noiseAddress[0]); // ensure address is looking for noise
Serial.println("\nStopping Carrier Out");
Serial.println("\nStopping Carrier Wave Output");
printHeader();
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples_pico/scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main()
printf("RF24/examples_pico/scanner\n");

// print a line that should not be wrapped
printf("!!! This example requires a width of at least 126 characters. ");
printf("\n!!! This example requires a width of at least 126 characters. ");
printf("If this text uses multiple lines, then the output will look bad.\n");

// initialize the transceiver on the SPI bus
Expand Down Expand Up @@ -139,7 +139,7 @@ void initRadio()
}

// To set the radioNumber via the Serial terminal on startup
printf("Select your data rate. ");
printf("\nSelect your data rate. ");
printf("Enter '1' for 1 Mbps, '2' for 2 Mbps, or '3' for 250 kbps. ");
printf("Defaults to 1 Mbps.\n");
char input = getchar();
Expand Down

0 comments on commit b6088f0

Please sign in to comment.