Kiko Ishimoto / Motor2

Dependents:   OneCircleRobot

Fork of Motor by Kiko Ishimoto

Files at this revision

API Documentation at this revision

Comitter:
kikoaac
Date:
Tue Aug 18 04:44:54 2015 +0000
Parent:
1:4ab6e9768847
Child:
3:dea2df71cb97
Commit message:
Motor
;

Changed in this revision

Motor.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Motor.cpp	Tue Jul 21 08:11:59 2015 +0000
+++ b/Motor.cpp	Tue Aug 18 04:44:54 2015 +0000
@@ -7,7 +7,8 @@
 motor(_pin_h1,_pin_g2,_pin_g1,_pin_h2),PwmPin(_pwm)
 {
     max=Max;
-    PwmPin.period_ms(1);
+    //this 
+    PwmPin.period_ms(10);
     run(Stop,1);
 }
 void Motor::setup(int _state)