DigitalRead()

Reads the value from the specified digital input channel(s).

Syntax


digitalRead(unsigned char numChans, unsigned char* channels, unsigned char* values);

numChans
The number of digital input channels to read from.

channels
A pointer to the first element in a byte array containing the digital channels to read from.

values
A pointer to the first element in an unsigned byte array that will be populated with the bit packed digital input values. The array must be of size ceiling(numChans/8).

Returns


int status