My Aduino Libraries
allows to use push buttons and process their events easily.
- add event handler for "pushed" event: will receive the pin number of the pushed button + how much time it was held since the first "high" value. return "true" to keep getting callback calls for the button's current held session or "false" to stop receiving them (for current push).
- add event handler for "released" event: will receive the pin number of the pushed button + how much time it was held since the first "high" value.
Get vibration sesnsor data and process for alarm usage: "IsBusted" - will return true if there were X vibrations in Y milliseconds (configurable).