Ries Twisk / Mbed 2 deprecated JoyStick

Dependencies:   USBDevice mbed-rtos mbed

Fork of JoyStick by Ries Twisk

Committer:
rvt
Date:
Wed Aug 28 02:33:03 2013 +0000
Revision:
0:33bc88c4ab31
Child:
1:5b2ab44eb31f
Initial release with RTOS

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rvt 0:33bc88c4ab31 1 #ifndef ANALOGINFILTERED_H
rvt 0:33bc88c4ab31 2 #define ANALOGINFILTERED_H
rvt 0:33bc88c4ab31 3
rvt 0:33bc88c4ab31 4 #include "mbed.h"
rvt 0:33bc88c4ab31 5 #include "AnalogFilterInterface.h"
rvt 0:33bc88c4ab31 6
rvt 0:33bc88c4ab31 7 class AnalogInFiltered {
rvt 0:33bc88c4ab31 8 private:
rvt 0:33bc88c4ab31 9 AnalogIn *_ain;
rvt 0:33bc88c4ab31 10 long _lastValue;
rvt 0:33bc88c4ab31 11 AnalogFilterInterface *_filter;
rvt 0:33bc88c4ab31 12 public:
rvt 0:33bc88c4ab31 13 AnalogInFiltered(AnalogFilterInterface *filter, PinName pin);
rvt 0:33bc88c4ab31 14 ~AnalogInFiltered();
rvt 0:33bc88c4ab31 15 void measure ();
rvt 0:33bc88c4ab31 16 long getValue();
rvt 0:33bc88c4ab31 17 bool getIsChanged(int offSet);
rvt 0:33bc88c4ab31 18 };
rvt 0:33bc88c4ab31 19
rvt 0:33bc88c4ab31 20 #endif