LennartHennigs / ESPRotary

Arduino/ESP library to simplify reading rotary encoder data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Longer LongClickHandler

pablopeu opened this issue · comments

Hi Lennart, is it possible to adjust the length of a long click? I would like to make it a bit longer to be detected as such. I get false positives from time to time (user fault of course)

Thanks.

Hi, I have hardcoded the long press delay in the Button2.h. You can change it there.

https://github.com/LennartHennigs/Button2/blob/master/src/Button2.h

I totally forgot that buttons and rotary were different libraries... Even after seeing both includes in my mind they were one... That's why I didn't find any reference... BIG FACEPALM. LOL and sorry! Many many thanks!

No problem :-)