diff --git a/examples_linux/acknowledgementPayloads.cpp b/examples_linux/acknowledgementPayloads.cpp index 7ce4623d6..2138c19a0 100644 --- a/examples_linux/acknowledgementPayloads.cpp +++ b/examples_linux/acknowledgementPayloads.cpp @@ -27,6 +27,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/gettingstarted.cpp b/examples_linux/gettingstarted.cpp index 78e244acc..88991177c 100644 --- a/examples_linux/gettingstarted.cpp +++ b/examples_linux/gettingstarted.cpp @@ -26,6 +26,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/interruptConfigure.cpp b/examples_linux/interruptConfigure.cpp index 6e6489f1b..f032e163a 100644 --- a/examples_linux/interruptConfigure.cpp +++ b/examples_linux/interruptConfigure.cpp @@ -35,6 +35,8 @@ volatile bool got_interrupt = false; // used to signify that the event started #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/manualAcknowledgements.cpp b/examples_linux/manualAcknowledgements.cpp index 5f35e483a..83bf77baf 100644 --- a/examples_linux/manualAcknowledgements.cpp +++ b/examples_linux/manualAcknowledgements.cpp @@ -32,6 +32,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/multiceiverDemo.cpp b/examples_linux/multiceiverDemo.cpp index 86e8a148b..d46463c9b 100644 --- a/examples_linux/multiceiverDemo.cpp +++ b/examples_linux/multiceiverDemo.cpp @@ -30,6 +30,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/ncurses/scanner_curses.cpp b/examples_linux/ncurses/scanner_curses.cpp index 1c45bf3db..282701980 100644 --- a/examples_linux/ncurses/scanner_curses.cpp +++ b/examples_linux/ncurses/scanner_curses.cpp @@ -33,6 +33,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/scanner.cpp b/examples_linux/scanner.cpp index e50becc50..4f35f4fed 100644 --- a/examples_linux/scanner.cpp +++ b/examples_linux/scanner.cpp @@ -58,6 +58,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif diff --git a/examples_linux/streamingData.cpp b/examples_linux/streamingData.cpp index d63a888ee..f7b1c5432 100644 --- a/examples_linux/streamingData.cpp +++ b/examples_linux/streamingData.cpp @@ -28,6 +28,8 @@ using namespace std; #define CSN_PIN 0 #ifdef MRAA #define CE_PIN 15 // GPIO22 +#elif defined(RF24_WIRINGPI) + #define CE_PIN 3 // GPIO22 #else #define CE_PIN 22 #endif