Button class with auto repeat function.
Diff: Button.h
- Revision:
- 4:d54859273629
- Parent:
- 3:03aea89f2a5c
- Child:
- 5:faff91d60ae3
diff -r 03aea89f2a5c -r d54859273629 Button.h --- a/Button.h Sat May 13 18:15:11 2017 +0000 +++ b/Button.h Fri Jul 14 18:22:24 2017 +0000 @@ -43,9 +43,9 @@ , _onButtonEvent(onButtonEvent) { _in.mode(pinMode); - _in.rise(Callback<void()>(this, &Button::isrRise)); - _in.fall(Callback<void()>(this, &Button::isrFall)); }; + void startInterrupt(); + void stopInterrupt(); inline void setAutoRepeatTime_ms(uint16_t autoRepeatTime) { _autoRepeatTime = autoRepeatTime;