Ries Twisk / Mbed 2 deprecated JoyStick

Dependencies:   USBDevice mbed-rtos mbed

Fork of JoyStick by Ries Twisk

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Button.h Source File

Button.h

00001 #ifndef BUTTON_H
00002 #define BUTTON_H
00003 
00004 #include "mbed.h"
00005 
00006 class Button {
00007     private:
00008         DigitalIn   *_digitalIn;
00009         bool _lastValue;
00010         bool _value;
00011         const bool _reversed;
00012     public:   
00013         /**
00014         filter : Failter chain
00015         pin : Analog input to read
00016         */
00017         Button(PinName pin, bool reversed, bool pullUp);
00018         ~Button();
00019                 
00020         void measure();
00021         bool getData() const;
00022         bool getIsChanged();
00023 
00024 };
00025 
00026 #endif