encoder
encoder copied to clipboard
Issue with table based encoders
In line 92 of ClickEncoder.cpp the value of the lookup table (+1 / 0 / -1) is stored in a uint8_t datatype, instead it should be stored in an int8_t type according to the possible values.
uint8_t tbl = pgm_read_byte(&table[last]); if (tbl) { Serial.println(tbl); delta += tbl; moved = true; }
Just FYI, this fix as well as other bug fixes and enhancements are in my fork of this library.