bike datalogging basic
Diff: Data.h
- Revision:
- 0:ec76b22829d5
diff -r 000000000000 -r ec76b22829d5 Data.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Data.h Sat Apr 16 14:55:37 2016 +0000 @@ -0,0 +1,21 @@ +#ifndef DATA_H +#define DATA_H + +#include "mbed.h" + +class Data{ + //Ticker voor peroidieke metingen. +protected: + InterruptIn button; + Ticker tick; +public: + Data(PinName pin); + double getDistance(void); + int getTime(void); + double getSpeed(void); + double getAverage(void); + int getLastCount(void); + +}; + +#endif \ No newline at end of file