From 39e6f34979489c04afe2089440f4fa6f9e021327 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Mon, 25 Sep 2023 23:49:20 -0600 Subject: [PATCH] Update nrf examples - remove calls to include SPI and printf --- .../RF24/AcknowledgementPayloads/AcknowledgementPayloads.ino | 4 +--- examples/RF24/GettingStarted/GettingStarted.ino | 2 -- .../GettingStartedEncryption/GettingStartedEncryption.ino | 2 -- examples/RF24/scanner/scanner.ino | 1 - examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino | 1 - examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino | 3 --- .../RF24Mesh_ExampleEncryption/RF24Mesh_ExampleEncryption.ino | 2 -- .../RF24Mesh_Example_MasterEncryption.ino | 1 - examples/RF24Network/helloworld_rx/helloworld_rx.ino | 1 - .../helloworld_rxEncryption/helloworld_rxEncryption.ino | 1 - examples/RF24Network/helloworld_tx/helloworld_tx.ino | 1 - .../helloworld_txEncryption/helloworld_txEncryption.ino | 1 - 12 files changed, 1 insertion(+), 19 deletions(-) diff --git a/examples/RF24/AcknowledgementPayloads/AcknowledgementPayloads.ino b/examples/RF24/AcknowledgementPayloads/AcknowledgementPayloads.ino index aa1ce56..2c066a8 100644 --- a/examples/RF24/AcknowledgementPayloads/AcknowledgementPayloads.ino +++ b/examples/RF24/AcknowledgementPayloads/AcknowledgementPayloads.ino @@ -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 -#include "printf.h" + #include "nrf_to_nrf.h" // instantiate an object for the nRF24L01 transceiver @@ -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 } diff --git a/examples/RF24/GettingStarted/GettingStarted.ino b/examples/RF24/GettingStarted/GettingStarted.ino index 68d6596..04912ea 100644 --- a/examples/RF24/GettingStarted/GettingStarted.ino +++ b/examples/RF24/GettingStarted/GettingStarted.ino @@ -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 -#include "printf.h" #include "nrf_to_nrf.h" // instantiate an object for the nRF24L01 transceiver diff --git a/examples/RF24/GettingStartedEncryption/GettingStartedEncryption.ino b/examples/RF24/GettingStartedEncryption/GettingStartedEncryption.ino index 4723593..17d892d 100644 --- a/examples/RF24/GettingStartedEncryption/GettingStartedEncryption.ino +++ b/examples/RF24/GettingStartedEncryption/GettingStartedEncryption.ino @@ -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 -#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}; diff --git a/examples/RF24/scanner/scanner.ino b/examples/RF24/scanner/scanner.ino index 84a8eaa..4d2755a 100644 --- a/examples/RF24/scanner/scanner.ino +++ b/examples/RF24/scanner/scanner.ino @@ -23,7 +23,6 @@ */ #include "nrf_to_nrf.h" -#include "printf.h" // // Hardware configuration diff --git a/examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino b/examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino index 2023846..0a2a46c 100644 --- a/examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino +++ b/examples/RF24Ethernet/mqtt_basic/mqtt_basic.ino @@ -30,7 +30,6 @@ */ -#include #include #include #include diff --git a/examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino b/examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino index 0b16011..4128d88 100644 --- a/examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino +++ b/examples/RF24Mesh/RF24Mesh_Example/RF24Mesh_Example.ino @@ -10,9 +10,6 @@ #include "nrf_to_nrf.h" #include "RF24Network.h" #include "RF24Mesh.h" -#include -//#include - /**** Configure the nrf24l01 CE and CS pins ****/ nrf_to_nrf radio; diff --git a/examples/RF24Mesh/RF24Mesh_ExampleEncryption/RF24Mesh_ExampleEncryption.ino b/examples/RF24Mesh/RF24Mesh_ExampleEncryption/RF24Mesh_ExampleEncryption.ino index 74aa45c..0bc3f2c 100644 --- a/examples/RF24Mesh/RF24Mesh_ExampleEncryption/RF24Mesh_ExampleEncryption.ino +++ b/examples/RF24Mesh/RF24Mesh_ExampleEncryption/RF24Mesh_ExampleEncryption.ino @@ -10,8 +10,6 @@ #include "nrf_to_nrf.h" #include "RF24Network.h" #include "RF24Mesh.h" -#include -//#include //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}; diff --git a/examples/RF24Mesh/RF24Mesh_Example_MasterEncryption/RF24Mesh_Example_MasterEncryption.ino b/examples/RF24Mesh/RF24Mesh_Example_MasterEncryption/RF24Mesh_Example_MasterEncryption.ino index 8122be1..5a50d7d 100644 --- a/examples/RF24Mesh/RF24Mesh_Example_MasterEncryption/RF24Mesh_Example_MasterEncryption.ino +++ b/examples/RF24Mesh/RF24Mesh_Example_MasterEncryption/RF24Mesh_Example_MasterEncryption.ino @@ -17,7 +17,6 @@ #include "nrf_to_nrf.h" #include "RF24Network.h" #include "RF24Mesh.h" -#include //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}; diff --git a/examples/RF24Network/helloworld_rx/helloworld_rx.ino b/examples/RF24Network/helloworld_rx/helloworld_rx.ino index d9cdb89..872c3c9 100644 --- a/examples/RF24Network/helloworld_rx/helloworld_rx.ino +++ b/examples/RF24Network/helloworld_rx/helloworld_rx.ino @@ -15,7 +15,6 @@ * Listens for messages from the transmitter and prints them out. */ -#include #include #include diff --git a/examples/RF24Network/helloworld_rxEncryption/helloworld_rxEncryption.ino b/examples/RF24Network/helloworld_rxEncryption/helloworld_rxEncryption.ino index dd27645..1d71f1a 100644 --- a/examples/RF24Network/helloworld_rxEncryption/helloworld_rxEncryption.ino +++ b/examples/RF24Network/helloworld_rxEncryption/helloworld_rxEncryption.ino @@ -15,7 +15,6 @@ * Listens for messages from the transmitter and prints them out. */ -#include #include #include diff --git a/examples/RF24Network/helloworld_tx/helloworld_tx.ino b/examples/RF24Network/helloworld_tx/helloworld_tx.ino index aacc171..2396f92 100644 --- a/examples/RF24Network/helloworld_tx/helloworld_tx.ino +++ b/examples/RF24Network/helloworld_tx/helloworld_tx.ino @@ -15,7 +15,6 @@ * Every 2 seconds, send a payload to the receiver node. */ -#include #include #include diff --git a/examples/RF24Network/helloworld_txEncryption/helloworld_txEncryption.ino b/examples/RF24Network/helloworld_txEncryption/helloworld_txEncryption.ino index 140fb61..94b94c9 100644 --- a/examples/RF24Network/helloworld_txEncryption/helloworld_txEncryption.ino +++ b/examples/RF24Network/helloworld_txEncryption/helloworld_txEncryption.ino @@ -15,7 +15,6 @@ * Every 2 seconds, send a payload to the receiver node. */ -#include #include #include