![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Programming Milestone Group 7 BMT M9
Dependencies: FastPWM MODSERIAL mbed
Diff: main.cpp
- Revision:
- 3:cb0a931ff019
- Parent:
- 2:6d3f3d1bcef7
diff -r 6d3f3d1bcef7 -r cb0a931ff019 main.cpp --- 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