Button class with auto repeat function.

Files at this revision

API Documentation at this revision

Comitter:
vargham
Date:
Fri Jul 14 18:38:31 2017 +0000
Parent:
4:d54859273629
Commit message:
Auto enable interrupt.

Changed in this revision

Button.h Show annotated file Show diff for this revision Revisions of this file
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();