Slide 94
Slide 94 text
pigpio: Set PWM Values
// set all PWM channels from two arrays of ON and OFF vals in one
transaction
int PCA9685_setPWMVals(int fd, unsigned char addr, unsigned int*
onVals, unsigned int* offVals);
// set a single PWM channel with a 16-bit ON val and a 16-bit OFF val
int PCA9685_setPWMVal(int fd, unsigned char addr, unsigned char reg,
unsigned int on, unsigned int off);
// set all PWM channels with one 16-bit ON val and one 16-bit OFF val
int PCA9685_setAllPWM(int fd, unsigned char addr, unsigned int on,
unsigned int off);
94