Skip to content

Commit fe5ce98

Browse files
authored
Merge branch 'next' into lvgl-grid
2 parents 68aed53 + 5e073bb commit fe5ce98

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

content/components/i2c.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ params:
1010
{{< anchor "i2c" >}}
1111

1212
This component sets up the I²C bus for your ESP32, ESP8266, RP2040 or NRF52. In order for these components
13-
to work correctly, you need to define the I²C bus in your configuration. Please note the ESP
14-
will enable its internal 10kΩ pullup resistors for these pins, so you usually don't need to
15-
put on external ones. You can use multiple devices on one I²C bus as each device is given a
13+
to work correctly, you need to define the I²C bus in your configuration. On ESP32 (both Arduino and ESP-IDF
14+
frameworks), internal pullup resistors are enabled by default. On ESP8266, the internal 10kΩ pullup resistors
15+
are always enabled. External pullups are still recommended for longer wire runs or multiple devices.
16+
You can use multiple devices on one I²C bus as each device is given a
1617
unique address for communicating between it and the ESP. You can do this by hopping
1718
wires from the two lines (SDA and SCL) from each device board to the next device board or by
1819
connecting the wires from each device back to the two I²C pins on the ESP.
@@ -43,8 +44,14 @@ i2c:
4344
NRF52 supports only `100kHz` and `400kHz`.
4445

4546
- **timeout** (*Optional*, [Time](/guides/configuration-types#time)): Set the I²C bus timeout.
46-
Defaults to the framework defaults (`100us` on `esp32` with `esp-idf`, `50ms` on `esp32` with `Arduino`,
47-
`1s` on `esp8266` and `1s` on `rp2040` ). Maximum on `esp-idf` is 13ms.
47+
Defaults to the framework defaults (`100us` on `esp32`, `1s` on `esp8266` and `1s` on `rp2040`).
48+
Maximum on `esp32` is 13ms.
49+
50+
- **sda_pullup_enabled** (*Optional*, boolean): Enable the internal pullup resistor for the SDA pin.
51+
Defaults to `true`. Only available on ESP32.
52+
53+
- **scl_pullup_enabled** (*Optional*, boolean): Enable the internal pullup resistor for the SCL pin.
54+
Defaults to `true`. Only available on ESP32.
4855

4956
- **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually specify the ID for this I²C bus if you need multiple I²C buses.
5057

0 commit comments

Comments
 (0)