44#include <driver/gpio.h>
87 Button(uint8_t pin, uint8_t activeLevel, uint8_t longPressTicks,
ButtonCallback commonCallback =
nullptr, uint8_t autoResetTicks = 100)
206 static uint8_t
_inputMode(uint8_t pin, uint8_t activeLevel) {
209 return activeLevel == HIGH ? INPUT_PULLDOWN_16 : INPUT;
211 return activeLevel == LOW ? INPUT_PULLUP : INPUT;
214 if (!GPIO_IS_VALID_OUTPUT_GPIO(pin)) {
217 return activeLevel == LOW ? INPUT_PULLUP : INPUT_PULLDOWN;
Interface for executing tasks in the scheduler system.
Definition IExecutor.h:31
ObjectRegisterRecord(const ObjectRegisterRecord &)=delete
Deleted copy constructor to prevent copying.
static type_id getTypeId()
Get the unique type identifier for a given type T.
Definition TypeId.h:82
const void * type_id
Type alias for a unique type identifier.
Definition TypeId.h:43
Contains all classes and functions related to the Uniot Core.