example code using statis library for temperature measurement with LM35 and LM335

Dependencies:   mbed statis

Revision:
3:0e06300940cd
Parent:
1:5821fa15d6ca
Child:
5:0b3569945178
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/tickerEvent.h	Thu Nov 22 14:47:20 2012 +0000
@@ -0,0 +1,40 @@
+/*-------------------------------------------------------------------------*/
+/*                   tickerEvent header class declaration                  */
+/*-------------------------------------------------------------------------*/
+/*                    Ni-MH charger project US191 IRD                      */
+/*-------------------------------------------------------------------------*/
+/*                       Nov 2012 | J Grelet                               */
+/*-------------------------------------------------------------------------*/
+
+#ifndef tickerEvent_H
+#define tickerEvent_H
+
+#include "mbed.h"
+
+class tickerEvent {
+  private:
+    Ticker     _ticker;    
+    DigitalOut _pin;
+
+  public:
+     // Constructor
+    tickerEvent(PinName pin, float delay);
+    
+    // Destructor
+    ~tickerEvent(void);
+     
+    // return pin status 
+    int read(void);
+         
+     // A shorthand for read()
+    operator int() {
+        return read();
+    }
+    
+private: 
+   // method that change pin status
+   void toDo(void);
+        
+};
+
+#endif // tickerEvent_H
\ No newline at end of file