mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-24 07:21:18 -04:00
2nd-Level Encoder Debouncing for scrappy encoder dials (#1838)
* Experimental encoder debouncing * Experimental encoder debouncing * Clang * Comment changed
This commit is contained in:
parent
a2a5fb166e
commit
ee2e57d702
3 changed files with 45 additions and 71 deletions
|
@ -30,6 +30,7 @@ class Encoder {
|
|||
|
||||
private:
|
||||
uint_fast8_t state{0};
|
||||
int_fast8_t prev_direction{0};
|
||||
};
|
||||
|
||||
#endif /*__ENCODER_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue