Skip to content

Commit

Permalink
add adc/sampling_mode doc (#4601)
Browse files Browse the repository at this point in the history
* add adc/sampling_mode doc

* Update components/sensor/adc.rst

---------

Co-authored-by: Jesse Hills <[email protected]>
  • Loading branch information
blind-oracle and jesserockz authored Feb 10, 2025
1 parent 3d528db commit 6ee5356
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/sensor/adc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Configuration variables:
attenuation to use. See :ref:`adc-esp32_attenuation`. Defaults to ``0db``.
- **raw** (*Optional*): Allows to read the raw ADC output without any conversion or calibration. See :ref:`adc-raw`. Defaults to ``false``.
- **samples** (*Optional*): The amount of ADC readings to take per sensor update. On the ESP32 this value is ignored if ``attenuation`` is set to ``auto``. Defaults to ``1``.
- **sampling_mode** (*Optional*): Sampling method to use when multiple samples are taken.

- ``avg`` average of all samples (**Default**)
- ``min`` minimal value from all samples
- ``max`` maximal value from all samples

- **update_interval** (*Optional*, :ref:`config-time`): The interval
to check the sensor. Defaults to ``60s``.
- All other options from :ref:`Sensor <config-sensor>`.
Expand Down

0 comments on commit 6ee5356

Please sign in to comment.