Creating a CoxBox with the mbed
Dependencies: mbed C12832 SMARTGPU2
HallEffect.h
- Committer:
- jad19925
- Date:
- 2014-05-05
- Revision:
- 14:03ce6381dce6
- Parent:
- 8:ae9f6033daa0
File content as of revision 14:03ce6381dce6:
#ifndef __HallEffect__ #define __HallEffect__ #include "mbed.h" #define DATA_STROKE_COUNT 6 class HallEffect{ private: int strokeCount; double timeBetweenStrokes[DATA_STROKE_COUNT]; short timeIndex; Timer timer; public: HallEffect(); int getSPM(); int getCount(); void recordStroke(); void resetCount(); }; #endif /* defined(__HallEffect__) */