Button class with auto repeat function.
Diff: Button.h
- Revision:
- 5:faff91d60ae3
- Parent:
- 4:d54859273629
diff -r d54859273629 -r faff91d60ae3 Button.h --- a/Button.h Fri Jul 14 18:22:24 2017 +0000 +++ b/Button.h Fri Jul 14 18:38:31 2017 +0000 @@ -43,6 +43,7 @@ , _onButtonEvent(onButtonEvent) { _in.mode(pinMode); + startInterrupt(); }; void startInterrupt(); void stopInterrupt();