Documentation ¶
Overview ¶
Package pca9685 allows interfacing with the pca9685 16-channel, 12-bit PWM Controller through I2C protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PCA9685 ¶
type PCA9685 struct { Bus embd.I2CBus Addr byte Freq int // contains filtered or unexported fields }
PCA9685 represents a PCA9685 PWM generator.
func (*PCA9685) AnalogChannel ¶
func (*PCA9685) ServoChannel ¶
func (*PCA9685) SetPwm ¶
SetPwm sets the ON and OFF time registers for pwm signal shaping. channel: 0-15 onTime/offTime: 0-4095
Click to show internal directories.
Click to hide internal directories.