From c2dc35652e500e58aa11b44e6f1344c5e8868a26 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Fri, 1 Apr 2011 22:56:46 -0700 Subject: [PATCH] Flipped the logic on the role pin. --- examples/pingpair/pingpair.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/pingpair/pingpair.pde b/examples/pingpair/pingpair.pde index dc70270..18456e2 100644 --- a/examples/pingpair/pingpair.pde +++ b/examples/pingpair/pingpair.pde @@ -29,8 +29,8 @@ RF24 radio(8,9); -// sets the role of this unit in hardware. Connect to GND to be the 'ping' sender. -// Connect to +5V to be the 'pong' receiver. +// sets the role of this unit in hardware. Connect to GND to be the 'pong' receiver +// Leave open to be the 'pong' receiver. const int role_pin = 7; // @@ -72,9 +72,9 @@ void setup(void) // read the address pin, establish our role if ( digitalRead(role_pin) ) - role = role_pong_back; - else role = role_ping_out; + else + role = role_pong_back; // // Print preamble