From b9666b2e306ff37b99dc77bf43bbe20b963a0281 Mon Sep 17 00:00:00 2001 From: tracestep <16390082+tracestep@users.noreply.github.com> Date: Mon, 8 Apr 2024 22:11:49 -0300 Subject: [PATCH] Add timeout option on i2c.rst (esphome/issues#4340) (#2778) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- components/i2c.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/i2c.rst b/components/i2c.rst index 9e16eacdb..48176e248 100644 --- a/components/i2c.rst +++ b/components/i2c.rst @@ -37,6 +37,9 @@ Configuration variables: Defaults to ``true``. - **frequency** (*Optional*, float): Set the frequency the I²C bus should operate on. Defaults to ``50kHz``. Values are ``10kHz``, ``50kHz``, ``100kHz``, ``200kHz``, ... ``800kHz`` +- **timeout** (*Optional*, :ref:`config-time`): Set the I²C bus timeout. + Defaults to the framework defaults (``100us`` on ``esp32`` with ``esp-idf``, ``50ms`` on ``esp32`` with ``Arduino``, + ``1s`` on ``esp8266`` and ``1s`` on ``rp2040``). Maximum on ``esp-idf`` is 13ms. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID for this I²C bus if you need multiple I²C buses. .. note::