56 return { active, active != wasActive };
69template< u
int8_t pin >
72 static bool wasActive{
false };
89 return pin.
pressed() && !bOverridden;
constexpr bool isRotationRequested(const PinEdges &pin, const bool bOverridden)
Tells whether the rotation pin asks for a rotation now.
constexpr PinEdges pinEdges(const bool wasActive, const bool active)
The edges of a pin, from its previous level and its current one.
PinEdges trackPinEdges(const bool active)
Gives the edges of a pin from its current level, and keeps that level for the next call.
State of an active-LOW input pin, and how it changed since the previous reading.
constexpr bool released() const
it went HIGH since the previous reading
constexpr bool pressed() const
it went LOW since the previous reading