A PinAdapter that can set state programtically.
#include <VirtualPinAdapter.h>
◆ VirtualPinAdapter()
VirtualPinAdapter::VirtualPinAdapter |
( |
bool |
pressedState = LOW | ) |
|
|
inline |
Construct a VirtualPinAdapter.
- Parameters
-
pressedState | The state that represents 'pressed'. Default is LOW. |
◆ begin()
void VirtualPinAdapter::begin |
( |
| ) |
|
|
inlinevirtual |
◆ read()
bool VirtualPinAdapter::read |
( |
| ) |
|
|
inlinevirtual |
Returns the current state.
- Returns
- true
-
false
Implements PinAdapter.
◆ setState()
void VirtualPinAdapter::setState |
( |
bool |
newState | ) |
|
|
inline |
Directly set the state.
- Parameters
-
The documentation for this class was generated from the following file: