Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: D7A_Demo-Get-started CVtoOSCConverter EE3501keypad D7A_Localisation ... more
Fork of DebouncedInterrupt by
Revision 15:948e85b22efe, committed 2014-02-18
- Comitter:
- kandangath
- Date:
- Tue Feb 18 20:18:12 2014 +0000
- Parent:
- 14:da09706b92f5
- Child:
- 16:7eaa188de0f9
- Commit message:
- Updates
Changed in this revision
| DebouncedInterrupt.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DebouncedInterrupt.h Tue Feb 18 17:26:42 2014 +0000
+++ b/DebouncedInterrupt.h Tue Feb 18 20:18:12 2014 +0000
@@ -1,25 +1,27 @@
-/**
-* DebouncedInterrupt.h
-* Monitors and debounces an InterruptIn
-**/
-/**
-Example:
-DebouncedInterrupt up_button(p15);
-
-void onUp()
-{
- // Do Something
-}
-
-int main()
-{
- up_button.attach(&onUp, INT_FALL, 100);
- while(1) {
- ...
- }
-}
-**/
+/** A replacement for InterruptIn that debounces the interrupt
+ * Anil Kandangath
+ *
+ * @code
+ *
+ * #include "DebouncedInterrupt.h"
+ *
+ * DebouncedInterrupt up_button(p15);
+ *
+ * void onUp()
+ * {
+ * // Do Something
+ * }
+ *
+ * int main()
+ * {
+ * up_button.attach(&onUp, INT_FALL, 100);
+ * while(1) {
+ * ...
+ * }
+ * }
+ * @endcode
+ */
#ifndef DEBOUNCED_INTERRUPT_H
#define DEBOUNCED_INTERRUPT_H
