Skip to content

Commit

Permalink
Update nrf examples
Browse files Browse the repository at this point in the history
- remove calls to include SPI and printf
  • Loading branch information
TMRh20 committed Sep 26, 2023
1 parent 7a96daa commit 39e6f34
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
* This example was written to be used on 2 devices acting as "nodes".
* Use the Serial Monitor to change each node's behavior.
*/
#include <SPI.h>
#include "printf.h"

#include "nrf_to_nrf.h"

// instantiate an object for the nRF24L01 transceiver
Expand Down Expand Up @@ -105,7 +104,6 @@ delay(5000);
}

// For debugging info
// printf_begin(); // needed only once for printing details
// radio.printDetails(); // (smaller) function that prints raw register values
// radio.printPrettyDetails(); // (larger) function that prints human readable data
}
Expand Down
2 changes: 0 additions & 2 deletions examples/RF24/GettingStarted/GettingStarted.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
* This example was written to be used on 2 devices acting as "nodes".
* Use the Serial Monitor to change each node's behavior.
*/
#include <SPI.h>
#include "printf.h"
#include "nrf_to_nrf.h"

// instantiate an object for the nRF24L01 transceiver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
* This example was written to be used on 2 devices acting as "nodes".
* Use the Serial Monitor to change each node's behavior.
*/
#include <SPI.h>
#include "printf.h"
#include "nrf_to_nrf.h"

uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};
Expand Down
1 change: 0 additions & 1 deletion examples/RF24/scanner/scanner.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

#include "nrf_to_nrf.h"
#include "printf.h"

//
// Hardware configuration
Expand Down
1 change: 0 additions & 1 deletion examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
*/

#include <SPI.h>
#include <nrf_to_nrf.h>
#include <RF24Network.h>
#include <RF24Mesh.h>
Expand Down
3 changes: 0 additions & 3 deletions examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#include "nrf_to_nrf.h"
#include "RF24Network.h"
#include "RF24Mesh.h"
#include <SPI.h>
//#include <printf.h>


/**** Configure the nrf24l01 CE and CS pins ****/
nrf_to_nrf radio;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "nrf_to_nrf.h"
#include "RF24Network.h"
#include "RF24Mesh.h"
#include <SPI.h>
//#include <printf.h>

//Set up our encryption key
uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "nrf_to_nrf.h"
#include "RF24Network.h"
#include "RF24Mesh.h"
#include <SPI.h>

//Set up our encryption key
uint8_t myKey[16] = {1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6};
Expand Down
1 change: 0 additions & 1 deletion examples/RF24Network/helloworld_rx/helloworld_rx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Listens for messages from the transmitter and prints them out.
*/

#include <SPI.h>
#include <nrf_to_nrf.h>
#include <RF24Network.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Listens for messages from the transmitter and prints them out.
*/

#include <SPI.h>
#include <nrf_to_nrf.h>
#include <RF24Network.h>

Expand Down
1 change: 0 additions & 1 deletion examples/RF24Network/helloworld_tx/helloworld_tx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Every 2 seconds, send a payload to the receiver node.
*/

#include <SPI.h>
#include <nrf_to_nrf.h>
#include <RF24Network.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Every 2 seconds, send a payload to the receiver node.
*/

#include <SPI.h>
#include <nrf_to_nrf.h>
#include <RF24Network.h>

Expand Down

0 comments on commit 39e6f34

Please sign in to comment.