Library for debouncing inputs, originally by Andres Mora Bedoya. Updated to include PinMode capability and class documentation.

Fork of DebouncedIn by Andrés Mora Bedoya

Files at this revision

API Documentation at this revision

Comitter:
faucherb94
Date:
Thu Oct 16 17:24:35 2014 +0000
Parent:
3:41d314732786
Commit message:
Updated documentation

Changed in this revision

DebouncedIn.cpp Show annotated file Show diff for this revision Revisions of this file
DebouncedIn.h Show annotated file Show diff for this revision Revisions of this file
--- a/DebouncedIn.cpp	Thu Oct 09 20:03:47 2014 +0000
+++ b/DebouncedIn.cpp	Thu Oct 16 17:24:35 2014 +0000
@@ -1,4 +1,4 @@
-/**
+/*
  * DebouncedIn class version 1.0
  * Created by Andres Moya Bedoya, updated by Ben Faucher
  */
--- a/DebouncedIn.h	Thu Oct 09 20:03:47 2014 +0000
+++ b/DebouncedIn.h	Thu Oct 16 17:24:35 2014 +0000
@@ -17,9 +17,14 @@
              /** Create a DebouncedIn connected to the specified pin
               *
               *  @param in DigitalIn pin to connect to
+              */
+             DebouncedIn(PinName in);
+             
+             /** Same as before, with option to specify pin mode
+              *
+              *  @param in DigitalIn pin to connect to
               *  @param mode (optional) Set pull mode - PullUp, PullDown, PullNone, OpenDrain
               */
-             DebouncedIn(PinName in);
              DebouncedIn(PinName in, PinMode mode);
  
              /** Read the input state, represented as 0 or 1 (int)