Debounce InterruptIn

Dependents:   led_sigfox Allumag_lampe_sigfox Case_study_02_Turnstile B18_MP3_PLAYER ... more

Files at this revision

API Documentation at this revision

Comitter:
kandangath
Date:
Tue Feb 18 20:22:31 2014 +0000
Parent:
15:948e85b22efe
Child:
17:96a51b236ba0
Commit message:
Default value for interrupt trigger

Changed in this revision

DebouncedInterrupt.h Show annotated file Show diff for this revision Revisions of this file
--- a/DebouncedInterrupt.h	Tue Feb 18 20:18:12 2014 +0000
+++ b/DebouncedInterrupt.h	Tue Feb 18 20:22:31 2014 +0000
@@ -52,7 +52,7 @@
     ~DebouncedInterrupt();
     
     // Start monitoring the interupt and attach a callback
-    void attach(void (*fptr)(void), const interruptTrigger& trigger, const uint32_t& debounce_ms=10);
+    void attach(void (*fptr)(void), const interruptTrigger& trigger=INT_FALL, const uint32_t& debounce_ms=10);
    
     // Stop monitoring the interrupt
     void reset();