Grelet Jacques
/
Ni-MH_V3
example code using statis library for temperature measurement with LM35 and LM335
tickerEvent.h@0:5ce1bc75ff24, 2012-11-19 (annotated)
- Committer:
- greletj
- Date:
- Mon Nov 19 20:02:24 2012 +0000
- Revision:
- 0:5ce1bc75ff24
- Child:
- 1:5821fa15d6ca
premiere version fonctionnelle
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
greletj | 0:5ce1bc75ff24 | 1 | // tickerEvent.h |
greletj | 0:5ce1bc75ff24 | 2 | #include "mbed.h" |
greletj | 0:5ce1bc75ff24 | 3 | |
greletj | 0:5ce1bc75ff24 | 4 | class tickerEvent { |
greletj | 0:5ce1bc75ff24 | 5 | private: |
greletj | 0:5ce1bc75ff24 | 6 | Ticker ticker; |
greletj | 0:5ce1bc75ff24 | 7 | DigitalOut _pin; |
greletj | 0:5ce1bc75ff24 | 8 | |
greletj | 0:5ce1bc75ff24 | 9 | public: |
greletj | 0:5ce1bc75ff24 | 10 | tickerEvent(PinName pin, float delay); |
greletj | 0:5ce1bc75ff24 | 11 | ~tickerEvent(void); |
greletj | 0:5ce1bc75ff24 | 12 | |
greletj | 0:5ce1bc75ff24 | 13 | void toDo(void); |
greletj | 0:5ce1bc75ff24 | 14 | }; |