Additional debounce control parameters for rotary encoder settings (for bad/noisy encoders) (#2841)

* Added debounce control options for rotary encoder settings

* ran format-code.sh to adjust whitespace

---------

Co-authored-by: Robert McKay <robert.mckay@ubermorgen.land>
This commit is contained in:
rmckay
2025-10-27 22:56:27 +00:00
committed by GitHub
parent 81afec9ea4
commit bf18851b6b
8 changed files with 144 additions and 64 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class EncoderDebounce {
uint8_t rotation_rate(); // returns last rotation rate
private:
uint8_t history_{0}; // shift register of previous reads from encoder
uint32_t history_{0}; // shift register of previous reads from encoder (16 samples @ 2 bits each)
uint8_t state_{0}; // actual encoder output state (after debounce logic)