Skip to content

Commit

Permalink
update example's IRQ_PIN value
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Mar 26, 2024
1 parent 823551e commit 6948890
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples_linux/interruptConfigure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
using namespace std;

// We will be using the nRF24L01's IRQ pin for this example
#define IRQ_PIN 24 // this needs to be a digital input capable pin
#ifdef MRAA
#define IRQ_PIN 18 // GPIO24
#elif defined(RF24_WIRINGPI)
#define IRQ_PIN 5 // GPIO24
#else
#define IRQ_PIN 24 // GPIO24
#endif

// this example is a sequential program. so we need to wait for the event to be handled
volatile bool got_interrupt = false; // used to signify that the event started
Expand Down

0 comments on commit 6948890

Please sign in to comment.