johnnyb / Eventually

A library for event-based programming to make Arduino programming more fun and intuitive
MIT License
190 stars 41 forks source link

Feature request. Add pin listener for high and low. #3

Closed kenthinson closed 5 years ago

kenthinson commented 7 years ago

Hi I really like the library. It would be nice to have the ability to add a listener for high and a listener for low states. Right now is seems the listener only fires when high? Just from my testing.

The feature I would like would be Similar to how other programming languages have addListenerButtonDown(run once on button down) and addListenerButtonUp(run once on button up) and addListenerButton(usually means continues firing while down)