I put this together for a guy the other day. I need a solution for Buttons and Switches, and it provides them in the same class.in terms of debouncing AND de-glitching, it did better according to my tests.supports an easy way to count button clicks.supports debouncing, does not debounce by default (you must call setDebounceTime on setup).does not support toggles/switches, although you can simulate it by checking the isPressed and isReleased events. most configs have defaults, and you may define them at the Button setup, but long press time is something you define while querying it's status rather than defining it once at the button setup.you can use it as a Button or a switch ( ToggleButton), different class for each.easy to use, not as easy as Switch and EasyButton tough.supports multiple times of long press, if needed.you may have a different action for single, double or triple click for the same button.supports double click, triple click, or a given number of clicks.does not support toggles/switches, although you can simulate it by checking the wasPressed and wasReleased properties.as I use PlatformIO, some warnings from this lib are shown while compiling my project.most configs have defaults, and you define them at the Button setup.you can use it as a switch or a button, same class handles both.Switch from avandalen: tutorial - github - lib - EasyButton from Evert Arias: tutorial - github - lib - JCButton from JChristensen: github - lib - ezButton from ArduinoGetStarted: tutorial - github - lib - are my findings for each lib: Switch.support debouncing and maybe de-glitching.I found many libs on this, and this is my wishlist: I'm on this subject right now and I'll use this to note my findings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |