![]() |
Speeduino
|
A class for input pin operations. More...
#include <inputPin.h>
Public Member Functions | |
| void | setPin (uint8_t pin, uint8_t mode=INPUT) |
| Set the input pin. | |
| bool | isPinHigh (void) const |
| Check if the pin is set high. | |
| bool | isPinLow (void) const |
| Check if the pin is set low. | |
| bool | isValid (void) const |
| Is the pin set? | |
A class for input pin operations.
Call setPin() to initialize the pin, then call isPinHigh() to check if the pin is set high.
Check if the pin is set high.


Check if the pin is set low.

Is the pin set?

Set the input pin.
