![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Single button. More...
#include <InputHardware.hpp>
Public Member Functions | |
| DigitalButton (InputGPIO pinNumber, InputNumber buttonNumber) | |
| Construct a new Digital Button object. | |
| virtual void | read (uint128_t &state) override |
| Read the current state of the inputs (pressed or released) | |
Public Member Functions inherited from DigitalInput | |
Protected Attributes | |
| InputGPIO | pinNumber |
| Configured input pin. | |
| uint8_t | inputNumber |
| Input bitmap. | |
Single button.
Definition at line 60 of file InputHardware.hpp.
| DigitalButton::DigitalButton | ( | InputGPIO | pinNumber, |
| InputNumber | buttonNumber ) |
Construct a new Digital Button object.
| [in] | pinNumber | GPIO pin where the button is attached to |
| [in] | buttonNumber | Assigned number for this button |
|
overridevirtual |
Read the current state of the inputs (pressed or released)
| [in,out] | state | At call, state of all inputs as recorded in the previous iteration. Whether the current state is unknown, state must be kept untouched. At return, new state of the inputs. |
Implements DigitalInput.
|
protected |
Input bitmap.
Definition at line 66 of file InputHardware.hpp.
|
protected |
Configured input pin.
Definition at line 64 of file InputHardware.hpp.