Skip to content
Discussion options

You must be logged in to vote

You're right that I overstated it. It isn't really per chip. machine_i2c.h special-cases only the C3 and S3, and every other target, the C6 included, falls into one shared default (SCL 18 / SDA 19 for I2C0, SCL 9 / SDA 8 for I2C1, with the classic ESP32 getting 25 / 26 on I2C1). So it's closer to one default for the whole port with a couple of exceptions.

On why MicroPython doesn't copy Espressif's tables: the file you linked is the Arduino core's variant map. For the generic C6 variant it sets SDA 23 / SCL 22 and SS 18 / MOSI 19 / MISO 20 / SCK 21, which is Arduino's choice of "what Wire and SPI mean on this board". MicroPython is built on ESP-IDF, not on the Arduino core, and as far as …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@konomikitten
Comment options

@have-you-tried-restarting
Comment options

Answer selected by konomikitten
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
4 participants