Creating a CoxBox with the mbed
Dependencies: mbed C12832 SMARTGPU2
HallEffect.h
00001 #ifndef __HallEffect__ 00002 #define __HallEffect__ 00003 00004 #include "mbed.h" 00005 00006 #define DATA_STROKE_COUNT 6 00007 00008 class HallEffect{ 00009 private: 00010 int strokeCount; 00011 double timeBetweenStrokes[DATA_STROKE_COUNT]; 00012 short timeIndex; 00013 Timer timer; 00014 00015 public: 00016 HallEffect(); 00017 int getSPM(); 00018 int getCount(); 00019 void recordStroke(); 00020 void resetCount(); 00021 }; 00022 00023 #endif /* defined(__HallEffect__) */
Generated on Thu Jul 14 2022 01:14:36 by 1.7.2