| aDig_ReadChar | Index |
Definition:
Parameters:
| index | - | The index of the digital I/O pin to read. |
Return Value:
Description:
This routine reads the state of a digital I/O pin and returns the value in a char. An I/O error will occur if the digital I/O pin is configured as an output.
Example:
n = aDig_ReadChar(3);
This would read the state of pin 3 into variable n.
Related: