Faster servo

Fork of Servo by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
vsutardja
Date:
Fri Apr 22 19:36:24 2016 +0000
Parent:
3:36b69a7ced07
Commit message:
Increased frequency

Changed in this revision

Servo.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 36b69a7ced07 -r d66a8456658a Servo.cpp
--- a/Servo.cpp	Thu Sep 02 17:34:43 2010 +0000
+++ b/Servo.cpp	Fri Apr 22 19:36:24 2016 +0000
@@ -36,6 +36,7 @@
 
 Servo::Servo(PinName pin) : _pwm(pin) {
     calibrate();
+    _pwm.period_ms(10);
     write(0.5);
 }