How does a rotary encoder works in esp?
Posted: 16 Oct 2018, 00:34
So is it right that it is a counter? It starts at 0 and when i turn rights it add 1 and at left subtract 1.
What does pulse per cycle mean? 1 for 360 degrees? So at 4 ppc every 90 degrees 1 pulse?
And last question. The min max. when I set 0-3 than i can have 4 pulses. But what happens when I reach 3 pulses? Will the counter stop at 3 pulses untill I turn left?
I want for each Pulse a seperate event. I would like to build a menu for lcd2004. Each Pulse should be a page to scroll.
Like If counter=0 then event page0
counter=1 then event page1
What does pulse per cycle mean? 1 for 360 degrees? So at 4 ppc every 90 degrees 1 pulse?
And last question. The min max. when I set 0-3 than i can have 4 pulses. But what happens when I reach 3 pulses? Will the counter stop at 3 pulses untill I turn left?
I want for each Pulse a seperate event. I would like to build a menu for lcd2004. Each Pulse should be a page to scroll.
Like If counter=0 then event page0
counter=1 then event page1