Grelet Jacques
/
Ni-MH_V3
example code using statis library for temperature measurement with LM35 and LM335
include/tickerEvent.h
- Committer:
- greletj
- Date:
- 2012-11-22
- Revision:
- 3:0e06300940cd
- Parent:
- tickerEvent.h@ 1:5821fa15d6ca
- Child:
- 5:0b3569945178
File content as of revision 3:0e06300940cd:
/*-------------------------------------------------------------------------*/ /* 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