Counter
Dependencies: EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem
Counter/Counter.cpp
- Committer:
- Tuxitheone
- Date:
- 2016-02-29
- Revision:
- 0:ecaf3e593122
File content as of revision 0:ecaf3e593122:
#include "Counter.h" Counter::Counter(PinName flowsignal) : _flowsensor(flowsignal) { Count=0; _flowsensor.fall(this, &Counter::click); } void Counter::click() { Count++; } float Counter::Flow(){ return (float) Count/PulsPrLiter; }