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

Improve README and add onPressStart event #58

Closed eiwi1101 closed 4 years ago

eiwi1101 commented 4 years ago

This PR accomplishes 2 things:

  1. It adds documentation about the library to the README, which should clear up having to browse through source / examples to get information on all available methods.

  2. It adds an onPressStart event, which is useful for detecting as soon as a button is pressed down without having to wait for a longPress event or doubleClick timeout to occur.

mathertel commented 4 years ago

Thanks for contributing. I will add another example to readme for the more typical button-to-GND wiring that uses the internal pullup resistor.