This is a debounced version of DigitalIn for Mechanical Switches. It is simplistic, and should be easy to use.

Dependents:   PID_ENCODER

main.cpp

Committer:
mr63
Date:
2013-08-16
Revision:
0:323110faffe5

File content as of revision 0:323110faffe5:

#include "mbed.h"
#include "DebouncedIn.h"


DigitalOut Status(LED1);

DebouncedIn Button(p12);


int main()
{


    while(true)
		{
			
				   Status = Button.get();			
			
    }
}