esp32_dac.rst - Add light component to example (#885)

* esp32_dac.rst - Add light component to example

* Replace abbreviation

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
This commit is contained in:
Christian Ferbar 2020-12-14 11:52:54 +01:00 committed by GitHub
parent 71279eccde
commit 28ec466d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ no need for additional filtering.
The DAC spans across two pins, each on its own channel: GPIO25 (Channel 1) and GPIO26 (Channel 2).
The output level is a percentage of the board supply voltage (VDD_A) - generally this will be 3.3V.
The output level is a percentage of the board supply voltage (VDD_A) - generally this will be 3.3 V.
.. code-block:: yaml
@ -29,6 +29,13 @@ The output level is a percentage of the board supply voltage (VDD_A) - generally
- output.set_level:
id: dac_output
level: 50%
# Use the DAC output as a light
light:
- platform: monochromatic
output: dac_output
gamma_correct: 1.4
id: dac_output
Configuration variables:
@ -48,6 +55,7 @@ Use Cases
- Driving a bar graph or large amount of LEDs using an analog-controlled LED driver like the LM3914
(`datasheet <https://www.ti.com/lit/ds/symlink/lm3914.pdf>`__); this can allow you to make tank
level indicators, temperature gauges, and so on from a single output pin
- Generating 0-10 V for a dimmable light (operational amplifier required)
See Also
--------