A simple library for driving RC servos without using the mbed's PWM functions. This allows the mbed to drive as many servos as there are DigitalOut pins, and additionally allows for the PWM functions to be used at a different frequency than the 50Hz used for servos.

Revision:
3:5357104c16a6
Parent:
2:19f995979c6a
Child:
7:ff85ac12e11b
--- a/Servo.h	Wed Aug 01 22:28:33 2012 +0000
+++ b/Servo.h	Thu Aug 02 02:29:10 2012 +0000
@@ -18,7 +18,7 @@
     static unsigned int numServos;
     static Servo *servos[];
     static const unsigned int period = 20000;
-    static Timeout refreshTimeout;
+    static Ticker refreshTicker;
     Timeout servoTimeout;
     unsigned int pulseWidth;
     DigitalOut signalPin;