|
arduino-audio-tools
|
Action definition per pin. More...
#include <AudioActions.h>
Public Member Functions | |
| Action ()=default | |
| virtual | ~Action () |
| virtual int | id () |
| virtual void | process () |
| virtual bool | readValue () |
Public Attributes | |
| void(* | actionOff )(bool pinStatus, digital_pin_t pin, void *ref) = nullptr |
| void(* | actionOn )(bool pinStatus, digital_pin_t pin, void *ref) = nullptr |
| ActiveLogic | activeLogic = ActiveHigh |
| int | debounceDelayValue = 500 |
| determines the value for the action | |
| unsigned long | debounceTimeout = 0 |
| bool | enabled = true |
| bool | lastState = true |
| digital_pin_t | pin = GPIO_NONE |
| bool(* | read_cb )(digital_pin_t, void *) = nullptr |
| void * | read_cb_ref = nullptr |
| void * | ref = nullptr |
| int | touchLimit = 20 |
Protected Member Functions | |
| bool | readPin (digital_pin_t pin) |
Action definition per pin.
|
default |
|
inlineprotected |
| ActiveLogic activeLogic = ActiveHigh |
| int debounceDelayValue = 500 |
determines the value for the action
| digital_pin_t pin = GPIO_NONE |
| bool(* read_cb) (digital_pin_t, void *) = nullptr |
| int touchLimit = 20 |