lorenzo906 / m2tklib

Automatically exported from code.google.com/p/m2tklib
0 stars 0 forks source link

Encoder advances on each second click #143

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Hook up encoder and load RotEnc sample sketch

What is the expected output? What do you see instead?
With each click while rotating encoder, value should increment once

Instead each second click advances it.  In Repetier Firmware there is a setting 
called UI_Encoder_speed that allows you to tweak the encoder speed, 0=fastest, 
2=slowest that will result in one menu move per click

This is obviously hardware dependant which is why its adjustable in 
marlin/repetier
I am working to add an OLED into a 3D printer firmware and using M2tklib to 
manage the menu - but need to fix encoder speed issue

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.

Original issue reported on code.google.com by peter.pl...@gmail.com on 2 Oct 2014 at 3:34

GoogleCodeExporter commented 8 years ago
try to modify
#define ROT_ENC_DEBOUNCE_VAL 3
#define ROT_ENC_EVENT_DIVISION 3

in /dev/arduino/m2esarduino.c

Original comment by olikr...@gmail.com on 2 Oct 2014 at 6:16

GoogleCodeExporter commented 8 years ago
Sorted!   Dropping both to 1 - works beautifully thanks

Peter

Original comment by peter.pl...@gmail.com on 2 Oct 2014 at 8:09

GoogleCodeExporter commented 8 years ago
Thanks for the feedback.

Original comment by olikr...@gmail.com on 3 Oct 2014 at 5:14