Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: USBDevice mbed-rtos mbed
Fork of JoyStick by
Diff: AnalogInFiltered.h
- Revision:
- 0:33bc88c4ab31
- Child:
- 1:5b2ab44eb31f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/AnalogInFiltered.h Wed Aug 28 02:33:03 2013 +0000
@@ -0,0 +1,20 @@
+#ifndef ANALOGINFILTERED_H
+#define ANALOGINFILTERED_H
+
+#include "mbed.h"
+#include "AnalogFilterInterface.h"
+
+class AnalogInFiltered {
+ private:
+ AnalogIn *_ain;
+ long _lastValue;
+ AnalogFilterInterface *_filter;
+ public:
+ AnalogInFiltered(AnalogFilterInterface *filter, PinName pin);
+ ~AnalogInFiltered();
+ void measure ();
+ long getValue();
+ bool getIsChanged(int offSet);
+};
+
+#endif
\ No newline at end of file
