Saltware / Mbed 2 deprecated Water Play

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
12:c51f3aba84fe
Child:
13:1323e2c0b697
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MockSensorController.h	Sat Jun 11 10:14:40 2016 +0000
@@ -0,0 +1,25 @@
+#ifndef __MOCKSENSORCONTROLLER_H__
+#define __MOCKSENSORCONTROLLER_H__
+
+#include "mbed.h"
+
+#include "SensorController.h"
+
+class MockSensorController : public SensorController {
+    public:
+        MockSensorController(bool threaded, int interval_ms, float (*func)(int)) : SensorController(threaded, interval_ms) {
+            this->func = func;    
+        }  
+        
+        virtual void update();
+        
+        virtual float getValue();
+        
+        virtual std::string get_name();
+    
+    private:
+        int i;
+        float (*func)(int);
+};
+
+#endif
\ No newline at end of file