jim herd / SD21
Embed: (wiki syntax)

« Back to documentation index

SD21 Class Reference

SD21 Class Reference

SD21 class. More...

#include <SD21.h>

Public Member Functions

 SD21 (PinName sda, PinName scl)
 Constructor for the SD21 connected to specified I2C pins at a specific address.
void reset (void)
 Reset SD21 device to its power-on state.
void set_servo (int servo_num, int angle, int speed)
 set a single servo value and associated speed using the full 16-bit registers

Detailed Description

SD21 class.

Allow access to an SD21 21-channel servo controller unit

        SD21  servo_control

Definition at line 46 of file SD21.h.


Constructor & Destructor Documentation

SD21 ( PinName  sda,
PinName  scl 
)

Constructor for the SD21 connected to specified I2C pins at a specific address.

21 Channel Servo Driver Module

Parameters:
sdaI2C data pin
sclI2C clock pin
i2cAddressI2C address

Definition at line 25 of file SD21.cpp.


Member Function Documentation

void reset ( void   )

Reset SD21 device to its power-on state.

Definition at line 29 of file SD21.cpp.

void set_servo ( int  servo_num,
int  angle,
int  speed 
)

set a single servo value and associated speed using the full 16-bit registers

Parameters:
servo_num1 to 21
angle0 to 90 (degrees)
speed0 to 255

Definition at line 32 of file SD21.cpp.