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.
Diff: SD20.h
- Revision:
- 6:973d6a66dbf7
- Parent:
- 2:b6789ad2af2b
--- a/SD20.h Thu Feb 25 20:26:24 2016 +0000
+++ b/SD20.h Fri Mar 04 23:04:28 2016 +0000
@@ -94,7 +94,8 @@
private:
I2C *_bus;
-
+
+ char updateDutyCycle[2];
public:
/** Create a SD20 Constructor, connected over I2C Master connection
@@ -120,7 +121,7 @@
* parameter mode: Select whether debug mode[0] and prints result or implementation mode [1]
* where print commands are skipped to save operational time
*/
- int UpdateChannel(char *DataOutput);
+ int UpdateChannel(char channelReg, char channelSpeed);
int SetStandardMode();