Port digiRead()
Read the current signal level on the DIO pin (digiRead) or the AIO pin (digiRead2) or the IRQ pin (digiRead3). Returns 0 or 1.
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
Port port (1);
byte port.digiRead();
byte port.digiRead2();
byte port.digiRead3();
Parameters
None.
Notes
This is a thin wrapper around the Arduino digitalRead() function.