Commit b233ea17 authored by campenr's avatar campenr

Update to match new RPi scanner example.

parent efb8ed1f
......@@ -62,6 +62,8 @@ void setup(void)
radio.startListening();
radio.stopListening();
radio.printDetails();
// Print out header, high then low digit
int i = 0;
while ( i < num_channels )
......@@ -102,14 +104,13 @@ void loop(void)
// Listen for a little
radio.startListening();
delayMicroseconds(225);
delayMicroseconds(128);
radio.stopListening();
// Did we get a carrier?
if ( radio.testCarrier() ){
++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