← index #17696PR #18049
Duplicate · high · value 3.834
QUERY · ISSUE

Update api of esp32 i2c and other drivers.

openby Vincent1-pythonopened 2025-07-17updated 2025-07-31
enhancementport-esp32

Description

Update api of esp32 i2c and other drivers.Because it will be removed in idf 6, it will not be compiled.

Code Size

None

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

esp32/machine_i2c: Update to use new ESP-IDF driver API.

closedby projectgusopened 2025-09-09updated 2025-09-24
port-esp32

This is a rebase & resubmit of #17971 by @Vincent1-python, which I accidentally closed by pushing the wrong commits during a rebase. :facepalm:

Summary

Replace the legacy ESP-IDF I²C driver (driver/i2c.h) with the new driver/i2c_master.h API for all ESP32-series SoCs.
This change:
Removes dependency on the deprecated peripheral driver that is no longer present in ESP-IDF ≥ 6.0.
Keeps the existing machine.I2C API unchanged, so user scripts do not require modification.

Testing

Trade-offs and Alternatives

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied