12#ifndef EXCLUDE_EVENT_ENCODER
14#ifndef EVENT_ENCODER_BUTTON_H
15#define EVENT_ENCODER_BUTTON_H
19#include "EventEncoder.h"
20#include "EventButton.h"
51 #if defined(FUNCTIONAL_SUPPORTED)
84 EventEncoderButton(EncoderAdapter *encoderAdapter,
byte buttonPin,
bool useDefaultDebouncer=
true);
138 #if defined(FUNCTIONAL_SUPPORTED)
140 template <
typename T>
144 (instance->*method)(et, ie);
346 currentPosition = pos;
347 previousPosition = currentPosition;
357 currentPressedPosition = pos;
358 previousPressedPosition = currentPressedPosition;
432 int16_t currentIncrement = 0;
434 int32_t currentPosition = 0;
435 int32_t previousPosition = 0;
437 int32_t currentPressedPosition = 0;
438 int32_t previousPressedPosition = 0;
440 bool encodingPressed =
false;
441 uint16_t encodingPressedCount = 0;
445 bool wrapMinMaxPos =
false;
447 int32_t minPressedPos=0;
448 int32_t maxPressedPos=0;
449 bool wrapMinMaxPressedPos =
false;
452 bool onEncoderChanged();
455#ifndef FUNCTIONAL_SUPPORTED
This is the interface/base class for debounce adapters.
Definition: DebounceAdapter.h:11
The EventEncoder class is for quadrature encoder inputs providing the position & encoder increment,...
Definition: EventEncoder.h:31
The interface specification for button, encoder button and switch pins.
Definition: PinAdapter.h:8