Creating a CoxBox with the mbed

Dependencies:   mbed C12832 SMARTGPU2

Revision:
2:552b4c2844ca
Child:
8:ae9f6033daa0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HallEffect.cpp	Sun May 04 19:18:53 2014 +0000
@@ -0,0 +1,36 @@
+#include "HallEffect.h"
+
+HallEffect::HallEffect(){
+    strokeCount = 0;
+    timeBetweenStrokes[0] = 0;
+//    interrupt = in;
+//    interrupt.rise(&hallISR);
+}
+
+//HallEffect::HallEffect(){
+//    strokeCount = 0;
+//    timeBetweenStrokes[0] = 0;
+////    InterruptIn in(p5);
+////    interrupt = in;
+////    interrupt.rise(&hallISR);
+//}
+
+int HallEffect::getSPM(){
+    return -1;
+}
+
+int HallEffect::getCount(){
+    return strokeCount/2;
+}
+
+void HallEffect::resetCount(){
+    strokeCount = 0;
+}
+
+void HallEffect::recordStroke(){
+    strokeCount++;
+}
+
+//HallEffect::hallISR(){
+//    strokeCount++;
+//}
\ No newline at end of file