Counter

Dependencies:   EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Counter.h Source File

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