-
Notifications
You must be signed in to change notification settings - Fork 114
digitalread
Ken Sharp edited this page Dec 8, 2023
·
1 revision
Reads the value from the specified digital input channel(s).
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)
.
int status