PCA9685 (pca9685 v1.0.0)
Driver for PCA9685 based 16 channel, 12 bit PWM driver connected over I2C.
usage
Usage
Add your device to your config like so:
config :pca9685,
devices: [%{bus: "i2c-1", address: 0x40}]
The properties bus
and address
are mandatory. You can optionally provide
pwm_freq
which is the output frequency you'd like to set (in Hz) and
oe_pin
which is the GPIO pin that you want to use for the output-enable
function. Remember that the OE pin is expecting to be driven high to +5V, so
won't work on a Raspberry Pi without a level shifter of some kind.
Your devices will be reset and you will be able to drive the outputs with your specified output frequency and duty cycle.
Link to this section Summary
Link to this section Functions
Link to this function
connect(config)
Connect to a PCA9685 device.
Link to this function
disconnect(device_name)
Disconnect a PCA9685 device.