Commit b233ea17 authored by campenr's avatar campenr

Update to match new RPi scanner example.

parent efb8ed1f
...@@ -62,6 +62,8 @@ void setup(void) ...@@ -62,6 +62,8 @@ void setup(void)
radio.startListening(); radio.startListening();
radio.stopListening(); radio.stopListening();
radio.printDetails();
// Print out header, high then low digit // Print out header, high then low digit
int i = 0; int i = 0;
while ( i < num_channels ) while ( i < num_channels )
...@@ -102,14 +104,13 @@ void loop(void) ...@@ -102,14 +104,13 @@ void loop(void)
// Listen for a little // Listen for a little
radio.startListening(); radio.startListening();
delayMicroseconds(225); delayMicroseconds(128);
radio.stopListening();
// Did we get a carrier? // Did we get a carrier?
if ( radio.testCarrier() ){ if ( radio.testCarrier() ){
++values[i]; ++values[i];
} }
radio.stopListening();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment