Gold mod encoders (MOD_0, MOD_1) are continuous, and accumulate raw edges for velocity.
More...
#include <encoders.h>
|
|
| ContinuousEncoder (const ContinuousEncoder &)=delete |
|
ContinuousEncoder & | operator= (const ContinuousEncoder &)=delete |
|
void | applyEdges (int8_t edges) |
|
bool | pending () const |
| | True if any ticks are waiting to be consumed.
|
|
int8_t | take () |
| | Returns the accumulated tick count and resets pos to 0.
|
|
double | calcNextKnobSpeed (int8_t offset) |
| | Returns multiplier for encoder offset.
|
|
|
std::atomic_int8_t | pos = 0 |
| | Written by the IRQ (applyEdges), drained by the encoder task.
|
|
double | currentKnobSpeed {0.0} |
Gold mod encoders (MOD_0, MOD_1) are continuous, and accumulate raw edges for velocity.
The documentation for this class was generated from the following files:
- src/deluge/hid/encoders.h
- src/deluge/hid/encoders.cpp