Counter
Dependencies: EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem
Counter.h
00001 #include "mbed.h" 00002 00003 #ifndef _Counter_H 00004 #define _Counter_H 00005 #define PulsPrLiter 450 00006 00007 class Counter { 00008 00009 private: 00010 InterruptIn _flowsensor; 00011 void click(); 00012 00013 00014 public: 00015 // ******************************************************************************** 00016 // * Constructor 00017 // * 00018 // * @param flowsignal The pin which is connected to the flowsensor. 00019 // ******************************************************************************** 00020 Counter(PinName flowsignal); 00021 00022 int Count; 00023 float Flow(); 00024 }; 00025 00026 #endif
Generated on Tue Jul 12 2022 14:07:50 by 1.7.2