This commit is contained in:
T3mplate-wow 2024-05-07 14:45:01 +02:00 committed by GitHub
commit f965111eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 1 deletions

View File

@ -58,7 +58,7 @@ Configuration variables:
- **frequency** (*Optional*, float): The frequency to let the - **frequency** (*Optional*, float): The frequency to let the
component drive all PWM outputs at. Must be in range from 24Hz to component drive all PWM outputs at. Must be in range from 24Hz to
1525.88Hz. Default ``1000Hz``. 1525.88Hz. Servo motors often need 50Hz. Default ``1000Hz``.
- **external_clock_input** (*Optional*, bool): Enable external clock input. PRE_SCALE register will by set to 3. Default to ``false``. - **external_clock_input** (*Optional*, bool): Enable external clock input. PRE_SCALE register will by set to 3. Default to ``false``.
- **address** (*Optional*, int): The I²C address of the driver. - **address** (*Optional*, int): The I²C address of the driver.
Defaults to ``0x40``. Defaults to ``0x40``.
@ -124,6 +124,24 @@ This output can be used for different PWM functions. E.g. output for light, fan
name: 'main light' name: 'main light'
output: pwm01 output: pwm01
Most servo motors need 50Hz. This is an example for common servos (e.g. MG995, SG90). See also (`Servo Component <https://esphome.io/components/servo.html>`__)
.. code-block:: yaml
pca9685:
- id: servoboard
frequency: 50
output:
- platform: pca9685
channel: 0
id: servo_output1
servo:
- id: servo1
output: servo_output1
See Also See Also
-------- --------