Skip to content

Commit

Permalink
Make the encrot table balanced
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
leptun committed Apr 24, 2023
1 parent 32e68c3 commit c339711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c339711

Please sign in to comment.