03-02-2023, 12:06 AM
# Example configuration entry with external clock enable and clock source from ESP32
pca9685:
- id: pca9685_hub1
external_clock_input: true
# Individual outputs
output:
# generate PWM from ESP32 ledc
- platform: ledc
pin: 25
id: extclk
min_power: 1
frequency: 40MHz
- platform: pca9685
pca9685_id: 'pca9685_hub1'
channel: 0
this is demo code from ESPHome, you can try to change the "frequency" to another value for a test.
details: https://esphome.io/components/output/pca9685.html
pca9685:
- id: pca9685_hub1
external_clock_input: true
# Individual outputs
output:
# generate PWM from ESP32 ledc
- platform: ledc
pin: 25
id: extclk
min_power: 1
frequency: 40MHz
- platform: pca9685
pca9685_id: 'pca9685_hub1'
channel: 0
this is demo code from ESPHome, you can try to change the "frequency" to another value for a test.
details: https://esphome.io/components/output/pca9685.html