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:
12:92dc63d24bf8
Parent:
10:f0df63e99a96
Child:
14:0eff26aa0d17
--- a/Servo.cpp	Sun Oct 21 03:30:36 2012 +0000
+++ b/Servo.cpp	Sat Nov 03 19:10:29 2012 +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)
         {