diff --git a/components/output/gp8403.rst b/components/output/gp8403.rst new file mode 100644 index 000000000..8638219ef --- /dev/null +++ b/components/output/gp8403.rst @@ -0,0 +1,53 @@ +GP8403 Component +================ + +.. seo:: + :description: Instructions for setting up GP8403 outputs in ESPHome. + :image: gp8403.svg + +The ``gp8403`` is a 2-channel DAC output module. It requires an :doc:`/components/i2c` to be setup. + +Component/Hub +------------- + +.. code-block:: yaml + + gp8403: + id: my_gp8403 + voltage: 5V + +Configuration variables: + +- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. +- **voltage** (**Required**, voltage): The output voltage range of the DAC. Must be one of ``5V`` or ``10V``. + +Output +------ + +.. code-block:: yaml + + output: + - platform: gp8403 + id: my_gp8403_output_1 + gp8403_id: my_gp8403 + channel: 0 + - platform: gp8403 + id: my_gp8403_output_2 + gp8403_id: my_gp8403 + channel: 1 + +Configuration variables: + +- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. +- **gp8403_id** (*Optional*, :ref:`config-id`): The ID of the GP8403 component. + Defaults to the only GP8403 component if there is only one. +- **channel** (**Required**, int): The channel of the GP8403 to use. Must be ``0`` or ``1``. +- All other options from :ref:`config-output`. + + +See Also +-------- + +- :doc:`/components/output/esp32_dac` +- :doc:`/components/output/index` +- :ghedit:`Edit` diff --git a/images/gp8403.svg b/images/gp8403.svg new file mode 100644 index 000000000..5ee72b007 --- /dev/null +++ b/images/gp8403.svg @@ -0,0 +1 @@ + diff --git a/index.rst b/index.rst index 9088ca13e..4ab95b20a 100644 --- a/index.rst +++ b/index.rst @@ -504,6 +504,7 @@ Output Components BP1658CJ, components/output/bp1658cj, bp1658cj.svg BP5758D, components/output/bp5758d, bp5758d.svg X9C Potentiometer, components/output/x9c, x9c.jpg + GP8403, components/output/gp8403, gp8403.svg Light Components ----------------