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:
14:0eff26aa0d17
Parent:
13:896410a1b594
Parent:
12:92dc63d24bf8
Child:
15:55221f9de707
--- a/Servo.cpp	Wed Jan 09 21:06:59 2013 +0000
+++ b/Servo.cpp	Wed Jan 09 21:08:53 2013 +0000
@@ -112,7 +112,7 @@
 void Servo::refresh()
 {
     // Start all of the individual servo width timeouts and write a logical 1 to their signal pins
-    for (int i = 0; i < numServos; i++)
+    for (unsigned int i = 0; i < numServos; i++)
     {
         if (servos[i]->pulseWidth > 0)
         {