![](/media/cache/group/cropped-logo_small-2_BOjObak.png.50x50_q85.png)
hallo
Diff: main.cpp
- Revision:
- 1:1c01d379dd37
- Parent:
- 0:d8e07dd54f68
--- a/main.cpp Fri Jun 24 06:44:59 2016 +0000 +++ b/main.cpp Wed Jul 24 12:53:42 2019 +0000 @@ -4,7 +4,7 @@ #include "TB6612FNG.h" // PWMA, AIN1, AIN2, PWMBm, BIN1, BIN2, STBY -TB6612FNG motorDriver(PTC9, PTB1, PTB0, PTA1, PTB3, PTC2, PTB2); +TB6612FNG motorDriver(PC_6, PD_10, PD_8, PC_8, PG_2, PG_4, PD_12); float fPwmPeriod; float fPwmPulsewidth; @@ -26,18 +26,14 @@ motorDriver.motorA_cw();//ClockWise wait(2); - - motorDriver.motorA_stop();//Stop - wait(2); - + motorDriver.motorB_ccw(); wait(2); motorDriver.motorB_cw(); wait(2); - motorDriver.motorB_stop(); - wait(2); + } }