This is a driver to control the SD20 20 Channel I2C to Servo Driver Chip from www.robot-electronics.co.uk (http://www.robot-electronics.co.uk/htm/sd20tech.htm). This driver will allow a servo channel to be started up, stopped and the duty cycle altered in standard mode. No attempt to include the extended mode is included.

Revision:
4:5ccaaacec14f
Parent:
1:6557cf755742
--- a/SD20.cpp	Sun Jan 24 15:10:48 2016 +0000
+++ b/SD20.cpp	Thu Feb 25 20:04:50 2016 +0000
@@ -17,7 +17,7 @@
         }
         else
         {
-            printf("0x%02x sent to Reg: 0x%02x\r\n",*(newDutyCycle+1),*newDutyCycle);
+            printf("Reg: 0x%02x Data: 0x%02x\r\n",*newDutyCycle,*(newDutyCycle+1));
             return 0;
         }
 }
@@ -35,7 +35,7 @@
             }
             else
             {
-                printf("0x%02x sent to Reg: 0x%02x\r\n",*(newDutyCycle+1),*newDutyCycle);
+                printf("Reg: 0x%02x Data: 0x%02x\r\n",*newDutyCycle,*(newDutyCycle+1));
                 return 0;
             }
         }
@@ -51,7 +51,7 @@
             }
             else
             {
-                printf("0x%02x sent to Reg: 0x%02x\r\n",*(newDutyCycle+1),*newDutyCycle);
+                printf("Reg: 0x%02x Data: 0x%02x\r\n",*newDutyCycle,*(newDutyCycle+1));
                 return 0;
             }
         }