๐ Hey there! I'm TanPitch, a passionate hobbyist exploring the world of coding.
๐ฑ Self-learned coder with an insatiable curiosity for all things tech.
โ Turning caffeine into code.
Arduino multi-events Button Library
License: Other
Hello I'm new in Arduino and I would like to ask for a little help.
I want to press the SET button and hold for a while (I just used press here) then I go to the settings menu where with the second CHANGE button I change the value of the X variable upwards by 1 plus the usual if after exceeding the value to zero. The third OK button is used to save the set X value and go to changing the Y value. Similarly, with the CHANGE button, I change the Y value up by 1 as above. Pressing the OK button saves the value of the Y variable and exits the settings menu. At any time, pressing and holding the SET button causes exit from the settings and if it was pressed when setting the X variable, nothing changes, but if it was pressed while setting the Y variable value, the previously set X value changes and the Y value does not.
I can enter the setup page using press SET button but other buttons doesn't work. What am I doing wrong. Could you please help me?
Best Regards,
Grzegorz
Hi TanPitch,
first: thank you for your good work to provide this button library.
When will the functions promised in the wiki be realized? Is there already a timetable for this?
Thanks a lot and Kind regards, Tom
Hi,
I had the problem that the time to detect the click action was too slow.
Therefore I decided to make some changes in your lib.
And here is the Advanced ButtonKing (attached).
New features:
You could update your repository with these files if you find this useful.
Hope that many users will benefit from this.
Thanks for the library! super cool. I am making a little terminal emulator with it (mainly because I will want to use the long/short detection). But:
Is there is a way to make it react super fast ignoring the double click?
Is there any way to get the new version 1.2 working in arduino IDE? the new function setPress and setRelease is just what I was looking for, but in version 1.02 that there is for arduino it does not work
Thanks, I love that library
I found only strange negative values were returned from both .getPressedTimer() in the ButtonQueen example.
Suggested fix in the .cpp file:
_stopPressedTimer = millis(); should happen before the if (_ReleaseFunc)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.