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);
354 currentPosition = pos;
355 previousPosition = currentPosition;
365 currentPressedPosition = pos;
366 previousPressedPosition = currentPressedPosition;
440 int16_t currentIncrement = 0;
442 int32_t currentPosition = 0;
443 int32_t previousPosition = 0;
445 int32_t currentPressedPosition = 0;
446 int32_t previousPressedPosition = 0;
448 bool encodingPressed =
false;
449 uint16_t encodingPressedCount = 0;
453 bool wrapMinMaxPos =
false;
455 int32_t minPressedPos=0;
456 int32_t maxPressedPos=0;
457 bool wrapMinMaxPressedPos =
false;
460 bool onEncoderChanged();
463#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