Package pca9685 allows interfacing with the pca9685 16-channel, 12-bit PWM Controller through I2C protocol.
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.