''moving' default SDA pin for hardware I2C(1) #17345
Replies: 4 comments
-
That is indeed strange, because in the code the default is set to 26, and there is not setting in the codebase for SDA to be at Pin 27. Code snippet from machine_i2c.c. Maybe there is a different setting on the machine which creates the preview files.
|
Beta Was this translation helpful? Give feedback.
-
Just tried to find out which of some previous preview versions have which default SDA pin for I2C(1). To my surprise all defaults - even of version 148 as in my opening message - report pin 26! That is the good news. |
Beta Was this translation helpful? Give feedback.
-
Found out: when explicitly specifying a pin for I2C (like sda=27) in one script it becomes the default for next scripts. And it survives soft resets. Maybe that was the cause of my experiences/observations. |
Beta Was this translation helpful? Give feedback.
-
I would recommend not depending on the default pin assignments but instead specifying explicit |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently I'm using: v1.26.0-preview.148.g49f81d504 with my ESP32-SPIRAM. With this version the default SDA-pin for I2C(1) is apparently pin 27, which was also the case with some other preview versions. However in other preview versions it was pin 26, which confirms with the documentation.
Strange that the default for the SDA pin seems to be 'moving' between preview versions.
Beta Was this translation helpful? Give feedback.
All reactions