i2cencoder icon indicating copy to clipboard operation
i2cencoder copied to clipboard

Encoder button pushed?

Open MoonMoon82 opened this issue 7 years ago • 4 comments

Hi! I just started working with the i2c rotary encoder. The first question is: How can I determin if the pushbutton is (still) pressed and released?

Thx and kind regards

MoonMoon82 avatar Jul 19 '18 13:07 MoonMoon82

Hi! I'm sorry but the push button is detectable only when is pushed. Is not possible to detect when is released or the current status.

DuPPadotnet avatar Jul 19 '18 15:07 DuPPadotnet

Thanks for your answer! I reviewed the schematic and connected a GPIO of my arduino to the pushbutton pin (see picture below). Now I can use readStatus(E_PUSH) as a filtered trigger from the FW and listen to the GPIO to get the state. It's a bit disappointing that there's no other way to recognise the state of the pushputton.

Kind regards 2018-07-20 10 59 53

MoonMoon82 avatar Jul 20 '18 09:07 MoonMoon82

Hello, Nice job!

If you have a programmer for the PIC MCU you can modify the FW and add that feature, i can help for that. Actually before no one asked this feature, this is why i didn't implemented. Thanks for the suggestion

Simone

DuPPadotnet avatar Jul 20 '18 10:07 DuPPadotnet

Hi,

I would love to, but I have no experience in programming PICs in MPLAB X IDE. I‘m just happy to be able to program Arduinos and ESPs in plattform.io. And I have no experience in JTAG programmer, if this is what‘s needed.. I‘m sorry to be a noob -.-

MoonMoon82 avatar Jul 20 '18 12:07 MoonMoon82