Skip to content

Commit

Permalink
Address fix for attiny example sketch
Browse files Browse the repository at this point in the history
The addresses are reversed when using with the GettingStarted sketch as
described in the comments. This causes the arduino and the tiny to both
be in receiver mode.
  • Loading branch information
ax7884 committed Jan 24, 2015
1 parent a46779f commit ba161a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rf24_ATTiny/rf24ping85/rf24ping85.ino
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ void setup() {
radio.begin(); // Start up the radio
radio.setAutoAck(1); // Ensure autoACK is enabled
radio.setRetries(15,15); // Max delay between retries & number of retries
radio.openWritingPipe(addresses[0]); // Write to device address '1Node'
radio.openReadingPipe(1,addresses[1]); // Read on pipe 1 for device address '2Node'
radio.openWritingPipe(addresses[1]); // Write to device address '2Node'
radio.openReadingPipe(1,addresses[0]); // Read on pipe 1 for device address '1Node'
radio.startListening(); // Start listening
}

Expand Down

0 comments on commit ba161a3

Please sign in to comment.