Skip to content

Commit

Permalink
Select a standard pin layout for the examples.
Browse files Browse the repository at this point in the history
 - Choose a standard pin layout for all the examples based on the pin connection table in the readme files.
 - Different pin layout in the example files could lead to not working examples.
  • Loading branch information
reixd committed Sep 26, 2014
1 parent 69af19c commit f39c958
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RPi/RF24Network/examples/helloworld_tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using namespace std;
//RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS0, BCM2835_SPI_SPEED_4MHZ);

// Setup for GPIO 22 CE and CE1 CSN with SPI Speed @ 8Mhz
RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS1, BCM2835_SPI_SPEED_8MHZ);
RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS0, BCM2835_SPI_SPEED_8MHZ);

RF24Network network(radio);

Expand Down
2 changes: 1 addition & 1 deletion RPi/RF24Network/examples/rx-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS0, BCM2835_SPI_SPEED_4MHZ);

// Setup for GPIO 22 CE and CE1 CSN with SPI Speed @ 8Mhz
RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS1, BCM2835_SPI_SPEED_8MHZ);
RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS0, BCM2835_SPI_SPEED_8MHZ);

RF24Network network(radio);

Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld_rx/helloworld_rx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <SPI.h>


RF24 radio(9,10); // nRF24L01(+) radio attached using Getting Started board
RF24 radio(7,8); // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio); // Network uses that radio
const uint16_t this_node = 00; // Address of our node in Octal format ( 04,031, etc)
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld_tx/helloworld_tx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <RF24.h>
#include <SPI.h>

RF24 radio(9,10); // nRF24L01(+) radio attached using Getting Started board
RF24 radio(7,8); // nRF24L01(+) radio attached using Getting Started board

RF24Network network(radio); // Network uses that radio

Expand Down

0 comments on commit f39c958

Please sign in to comment.