mathertel / OneButton

An Arduino library for using a single button for multiple purpose input.
http://www.mathertel.de/Arduino/OneButtonLibrary.aspx
Other
954 stars 230 forks source link

added tripple click event #81

Closed Blaubart closed 3 years ago

mathertel commented 3 years ago

Why don't you use multiclick ? 1,2,3,... Where to stop having explicit functions ?

Blaubart commented 3 years ago

Because I need 4 options. I think it is reasonable to have 4 options.

mathertel commented 3 years ago

the use multi-click and test the number of clicks using the getNumberClicks(). I think that this is acceptable and will support your requirement and still the library is small enough for all processors. So no merge.

Blaubart commented 3 years ago

Thats OK, but I didn't know about getNumberClicks (). It is not described in Readme.