- Posts: 28
- Thank you received: 4
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks Scott - I wrote the EncoderButton a few years ago (I just tidied it up for release), so hadn't revisited Lennart's Button2 but this was how I implemented it for my thermostat project - that was for ESP32 so I didn't/couldn't port it to Arduino. Teensyduino however...image missing /media/kunena/emoticons/smile.pngPhil,
Check out github.com/LennartHennigs/Button2/pull/29
Looks like a nice fix to allow callback functions to exist within a class. Was probably implemented in button2 after you started working on your library.
Scott...
Please Log in or Create an account to join the conversation.
Brilliant! Thank you very much. I'll pull that straight across and add a formal example. I'm assuming (dangerous) the commented out ' //#define ARDUINO_ARCH_ESP32 1' is superfluous.I created a pull request in your library with the fix for your approval. Works great!
Scott...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thats exactly what I am doing. This is a dedicated set of buttons that Jogs the Z up and down...BTW, I like what you're doing with the buttonMovePosZ->setLongPressHandler - continuous jog perhaps?
Please Log in or Create an account to join the conversation.