@Amedee, is there any way to reverse the action of the knob?
To come back on this...
I believe your board has an encoder with different specs... There is no 'tunable' in the firmware to reverse the action, you have to compile a new firmware...
Encoder handling is defined in dogm_lcd_implementation.h
#define BLEN_A 0
#define BLEN_B 1
#define BLEN_C 2
#define EN_A (1<<BLEN_A)
#define EN_B (1<<BLEN_B)
#define EN_C (1<<BLEN_C)
#define encrot0 0
#define encrot1 2
#define encrot2 3
#define encrot3 1
And I think the correct sequence for your encoder should be
#define encrot0 3
#define encrot1 1
#define encrot2 0
#define encrot3 2
But probably the easiest is to swap the pin assignment in pin.h:
#define BTN_EN1 40
#define BTN_EN2 42
change to
#define BTN_EN1 42
#define BTN_EN2 40
Recommended Posts
Top Posters In This Topic
28
17
11
9
Popular Days
Jan 3
7
Oct 9
6
Jan 4
6
Dec 31
5
Top Posters In This Topic
amedee 28 posts
zumfab 17 posts
macua85 11 posts
aviphysics 9 posts
Popular Days
Jan 3 2015
7 posts
Oct 9 2015
6 posts
Jan 4 2015
6 posts
Dec 31 2014
5 posts
macua85 52
Works perfectly, thanks so much amedee.
Link to post
Share on other sites