Skip to content

Commit

Permalink
Update bh1750.rst
Browse files Browse the repository at this point in the history
fixed
  • Loading branch information
yousaf465 authored Dec 3, 2024
1 parent 7f25264 commit c4a496f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/sensor/bh1750.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ I²C Configuration when using Higher I²C Frequencies

When using the **IDF framework** and **I²C frequencies greater than 50-100kHz**, the I²C configuration needs to include a **timeout** option.
On an ESP32, the Arduino framework has a default I²C timeout of 50ms whereas on IDF framework, the default timeout is 100us.
At these higher I²C frequencies, the default I²C timeout on IDF framework causes a "Communication with SHT3xD failed" error on setup.
At these higher I²C frequencies, the default I²C timeout on IDF framework causes a "Communication with BH1750 failed!" error on setup.
A solution that has been tested on ESP32 at 800kHz, is to increase the I²C timeout to 10ms as per the following example.

.. code-block:: yaml
Expand Down

0 comments on commit c4a496f

Please sign in to comment.