Computing stuff tied to the physical world

Docs » Port digiRead()


SYNOPSIS


#include <Ports.h>


Port port (1);


byte port.digiRead();


byte port.digiRead2();


byte port.digiRead3();


DESCRIPTION


Read the current signal level on the DIO pin (digiRead) or the AIO pin (digiRead2) or the IRQ pin (digiRead3). Returns 0 or 1.


PARAMETERS


None.


NOTES


This is a thin wrapper around the Arduino digitalRead() function.


SEE ALSO


Other member function in class Port, which is part of the Ports library.


page index