Make the encrot table balanced
It won't change much. It is not possible to determine in which direction the encoder spun when two steps are made, so just use + or - 2.
This commit is contained in:
parent
32e68c33b4
commit
c339711025
|
|
@ -786,8 +786,8 @@ void lcd_buttons_update(void)
|
|||
static const int8_t encrot_table[] PROGMEM = {
|
||||
0, -1, 1, 2,
|
||||
1, 0, 2, -1,
|
||||
-1, 2, 0, 1,
|
||||
2, 1, -1, 0,
|
||||
-1, -2, 0, 1,
|
||||
-2, 1, -1, 0,
|
||||
};
|
||||
|
||||
static uint8_t enc_bits_old = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue