From f7c0276f9db2bf7734e2cf61d1654b0ea940a599 Mon Sep 17 00:00:00 2001 From: Igor Novgorodov Date: Thu, 23 Jan 2025 21:38:40 +0100 Subject: [PATCH] add adc/sampling_mode doc --- components/sensor/adc.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/components/sensor/adc.rst b/components/sensor/adc.rst index 364ba80b71..1c98a60dd7 100644 --- a/components/sensor/adc.rst +++ b/components/sensor/adc.rst @@ -35,6 +35,7 @@ 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. Can be ``avg`` (average of all samples), ``min`` (minimal value from all samples), ``max`` (maximal value from all samples). Defaults to ``avg``. - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. - All other options from :ref:`Sensor `.