Counter
Dependencies: EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem
Diff: Counter/Counter.h
- Revision:
- 0:ecaf3e593122
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Counter/Counter.h Mon Feb 29 18:59:15 2016 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" + +#ifndef _Counter_H +#define _Counter_H +#define PulsPrLiter 450 + +class Counter { + +private: + InterruptIn _flowsensor; + void click(); + + +public: + // ******************************************************************************** + // * Constructor + // * + // * @param flowsignal The pin which is connected to the flowsensor. + // ******************************************************************************** + Counter(PinName flowsignal); + + int Count; + float Flow(); +}; + +#endif \ No newline at end of file