for sophomore

Fork of VNH5019 by aigamozu

Revision:
1:656efbc86da4
Parent:
0:83e00dc8eb92
--- a/VNH5019.cpp	Wed May 21 01:22:46 2014 +0000
+++ b/VNH5019.cpp	Wed May 28 11:54:04 2014 +0000
@@ -8,6 +8,8 @@
 //PinSetting
 VNH5019::VNH5019(PinName m1na,PinName m1nb,PinName m1pwm,PinName m2na,PinName m2nb,PinName m2pwm) 
     : _m1na(m1na),_m1nb(m1nb),_m1pwm(m1pwm),_m2na(m2na),_m2nb(m2nb),_m2pwm(m2pwm){
+        _m1pwm.period_us(50);
+        _m2pwm.period_us(50);
     }
     
 void VNH5019::changeSpeed(uint8_t L_state,uint8_t L_pwm,uint8_t R_state,uint8_t R_pwm){