![]() holding a button does not imply a click event being fired, greatly simplifying writing complex user interfaces.the maximum sampling frequency can be controlled defining the ANALOGBUTTONS_SAMPLING_INTERVAL macro, defaulting to 20. ![]() Minimum hold duration (time that must elapse before a button is considered being held) and hold interval (time that must elapse between each activation of the hold function) can both be configured.īy default max number of buttons per pin is limited to 8 to limit memory consumption, but it can be controlled defining the ANALOGBUTTONS_MAX_SIZE macro before including this library. Includes a software simple de-bouncing algorithm which can be tweaked and is based on the max sampling frequency of 50Hz (one sample every 20ms) ![]() You can register a call-back function which gets called when a button is pressed or held down for the defined number of seconds. In order to reduce the number of pins used by some projects, sketches can use this library to wire multiple buttons to one single analog pin. Please, before submitting a support request read carefully this README and check if an answer already exists among previously answered questions: do not abuse of the Github issue tracker.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |