import "github.com/kidoman/embd/controller/pca9685"
Package pca9685 allows interfacing with the pca9685 16-channel, 12-bit PWM Controller through I2C protocol.
type PCA9685 struct { Bus embd.I2CBus Addr byte Freq int // contains filtered or unexported fields }
PCA9685 represents a PCA9685 PWM generator.
New creates a new PCA9685 interface.
Close stops the controller and resets mode and pwm controller registers.
SetPwm sets the ON and OFF time registers for pwm signal shaping. channel: 0-15 onTime/offTime: 0-4095
Sleep puts the controller in sleep mode. Does not change the pwm control registers.
Wake allows the controller to exit sleep mode and resume with PWM generation.
Package pca9685 imports 6 packages (graph) and is imported by 9 packages. Updated 2016-07-25. Refresh now. Tools for package owners.