Many updates including new held() and retrigger() #15

Open
AlbertPhan wants to merge 8 commits from AlbertPhan/master into master
8 Commits
Author SHA1 Message Date
Albert Phan 71fc371bf8 Merge remote-tracking branch 'refs/remotes/thomasfredericks/master' 2017-01-07 14:03:20 -08:00
Albert Phan 2977f97058 Fixed bug with update constantly calling attach(pin)
This caused people to use retrigger() to have it constantly return a 1
when using active low buttons.
2017-01-07 13:58:41 -08:00
Albert Phan c5e009cc0d Removed unnecessary return 2015-03-28 15:01:22 -07:00
Albert Phan 05f2d42577 Fixed retrigger()
Function wasn't properly returning a false when held() was low.
2015-03-27 19:02:14 -07:00
Albert Phan 06e5982b3c Small change I forgot 2015-03-27 16:23:22 -07:00
Albert Phan fc35d18bd2 updated gitignore 2015-03-27 10:17:49 -07:00
Albert Phan de9fb2d9c0 update() calls attach() on first run
attach() is now called the first time update() is run so the pin setup
is before attach(). I also removed previous_millis_retrigger to save 4
bytes. Also updated retrigger.ino example with a few more comments.
2015-03-27 10:16:17 -07:00
Albert Phan d75d7d0bba Many updates including held() and retrigger()
Updated Constructors to do all the pin() and interval() setups. All the
setup can now be done in one step when instantiating the object. Added
held() and retrigger(). See examples. Updated other examples to use the
new constructor.
2015-03-26 17:34:10 -07:00