ESP32Encoder icon indicating copy to clipboard operation
ESP32Encoder copied to clipboard

How to setup range up/down for each encoder

Open gavron04 opened this issue 11 months ago • 7 comments

Hello. How to add up and down range for each encoder? Like moving between 0 to 10 or different value? ESP32,

For example. Range between 0 and 3 (4 positions 0;1;2;3)

sel = encoder2.getCount();
if(sel>3)
{
  encoder2.pauseCount();
}

encoder go to 4 and then stop. Not 3 and when moving up for 4 - is paused.

I cant find easy solution in .cpp or .h for this.

Thanks for help

gavron04 avatar Nov 12 '24 22:11 gavron04