Ries Twisk / Mbed 2 deprecated JoyStick

Dependencies:   USBDevice mbed-rtos mbed

Fork of JoyStick by Ries Twisk

Embed: (wiki syntax)

« Back to documentation index

SimpleButtonDecoder Class Reference

SimpleButtonDecoder Class Reference

ButtonDecoder. More...

#include <SimpleButtonDecoder.h>

Public Member Functions

 SimpleButtonDecoder (AnalogInFiltered *_analogIn, int value, short deBounceRuns)
 filter : Failter chain pin : Analog input to read

Detailed Description

ButtonDecoder.

I was planning to make a r2R ladder network but I couldn't find any very accurate resitors here in Ecuador (no Señor, no tengo ... sigh) so I bought some 5% resitors but they didn'0t work well enough. So this decoder sinply decoder the end value and this it means only one button at a timn can be detected reliable.

Definition at line 13 of file SimpleButtonDecoder.h.


Constructor & Destructor Documentation

SimpleButtonDecoder ( AnalogInFiltered _analogIn,
int  value,
short  deBounceRuns 
)

filter : Failter chain pin : Analog input to read

Definition at line 4 of file SimpleButtonDecoder.cpp.