Closed Llaves closed 3 years ago
I've implemented and tested this functionality and submitted a pull request.
If you're doing interrupt driven ticks() you wouldn't be able to call a callback. You'd need to use a semaphore.
see discussion in pull request #32. closed here.
have you considered adding a callback that is invoked when the position changes? Kind of like your OneButton library where the click invokes a callback.
Seems straightforward to callback from tick(), but maybe I'm missing some complication.