reeeeeeeeeeeeeee

Dependencies:   MotionSensor mbed

Fork of Assignment2_ver3 by weeb grammers

Revision:
9:751e39d24c39
Parent:
7:6dc42e1a2a81
--- a/main.cpp	Tue Nov 29 20:32:27 2016 +0000
+++ b/main.cpp	Tue Nov 29 22:06:14 2016 +0000
@@ -1,9 +1,11 @@
 #include "mbed.h"
 #include "PaceHeart.h"
 #include "Hardware.h"
+#include "motion.h"
 //DigitalOut output_pin_A(LED1);
 
 PaceHeart* Pacer = new PaceHeart;
+
 DigitalOut led(LED1);
 Serial pc(USBTX, USBRX);
 void setup() {
@@ -13,8 +15,12 @@
 
 int main() {
     setup();
+    initialize_motion ();
     while(1){
-    Output_V(1.0,0.4);
+        
+    Pacer->pace_V();
+    //motionThread.start(motion_thread);
+    motion_thread(*Pacer);
     //Check_serial(pc,*Pacer);
     }
     //Pacer-> pace_A();