diff --git a/examples_RPi/helloworld_rx.cpp b/examples_RPi/helloworld_rx.cpp index 3bc14538..090baa3e 100644 --- a/examples_RPi/helloworld_rx.cpp +++ b/examples_RPi/helloworld_rx.cpp @@ -22,16 +22,9 @@ **/ //using namespace std; -// CE Pin, CSN Pin, SPI Speed +// CE Pin, CSN Pin, SPI Speed (Hz) -// Setup for GPIO 22 CE and GPIO 25 CSN with SPI Speed @ 1Mhz -//RF24 radio(RPI_V2_GPIO_P1_22, RPI_V2_GPIO_P1_18, BCM2835_SPI_SPEED_1MHZ); - -// Setup for GPIO 22 CE and CE0 CSN with SPI Speed @ 4Mhz -//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_CS0, BCM2835_SPI_SPEED_8MHZ); +RF24 radio(22,0); RF24Network network(radio); diff --git a/examples_RPi/helloworld_tx.cpp b/examples_RPi/helloworld_tx.cpp index 1b7a7a0d..3962f29d 100644 --- a/examples_RPi/helloworld_tx.cpp +++ b/examples_RPi/helloworld_tx.cpp @@ -22,16 +22,9 @@ **/ using namespace std; -// CE Pin, CSN Pin, SPI Speed +// CE Pin, CSN Pin, SPI Speed(Hz) -// Setup for GPIO 22 CE and GPIO 25 CSN with SPI Speed @ 1Mhz -//RF24 radio(RPI_V2_GPIO_P1_22, RPI_V2_GPIO_P1_18, BCM2835_SPI_SPEED_1MHZ); - -// Setup for GPIO 22 CE and CE0 CSN with SPI Speed @ 4Mhz -//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_CS0, BCM2835_SPI_SPEED_8MHZ); +RF24 radio(22,0); RF24Network network(radio); diff --git a/examples_RPi/rx-test.cpp b/examples_RPi/rx-test.cpp index 1d30c165..8ad46327 100644 --- a/examples_RPi/rx-test.cpp +++ b/examples_RPi/rx-test.cpp @@ -14,16 +14,9 @@ **/ //using namespace std; -// CE Pin, CSN Pin, SPI Speed +// CE Pin, CSN Pin, SPI Speed (Hz) -// Setup for GPIO 22 CE and GPIO 25 CSN with SPI Speed @ 1Mhz -//RF24 radio(RPI_V2_GPIO_P1_22, RPI_V2_GPIO_P1_18, BCM2835_SPI_SPEED_1MHZ); - -// Setup for GPIO 22 CE and CE0 CSN with SPI Speed @ 4Mhz -//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_CS0, BCM2835_SPI_SPEED_8MHZ); +RF24 radio(22,0); RF24Network network(radio);