Programming Milestone Group 7 BMT M9

Dependencies:   FastPWM MODSERIAL mbed

Revision:
3:cb0a931ff019
Parent:
2:6d3f3d1bcef7
--- a/main.cpp	Tue Sep 25 14:58:08 2018 +0000
+++ b/main.cpp	Tue Sep 25 15:57:25 2018 +0000
@@ -35,9 +35,10 @@
 {
     pwmpin1.period_us(60.0); //60 microseconds PWM period, 16.7 kHz, defines all PWM pins (only needs to be done once)
     pc.baud(115200);
-    motor.attach(motorfunction,0.5);
-    while(true){
-           pc.printf("%f \n, %f \n, %f\n", pot1,pot1_scale, u1);
-           wait(1.0f);
-           } //Lege while loop zodat functie niet afloopt
+    //motor.attach(motorfunction,0.5);
+    
+    pwmpin1=(0);
+    pwmpin2=(0);
+    directionpin2 = false;
+    directionpin1 = true;
 }
\ No newline at end of file