Commit b85880a
committed
esp32/machine_i2c.c: Fix default I2C pins for new ESP32 C3 and S3.
This addresses issue micropython#17103.
The default I2C init does not require setting SCL or SDA but
the default pins for C3 (and S3?) conflict with the espressif
GPIO usage.
For the C3, pins 18/19 are for USB/JTAG. If used for
I2C() they will cause the REPL to hang on initialization of the I2C.
For the S3 pin 19 is allocated for USB/JTAG also but the
defaults do not seem to affect the REPL. Also the default pins for
I2C(2) were 25/26 which are invalid for S3.
This pull request updates pin settings for C3 and S3 I2C defaults
if not specified during the build.
See PR micropython#16956
See Issue micropython#17103
Signed-off-by: Rick Sorensen <[email protected]>1 parent 076d9ad commit b85880a
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
42 | 39 | | |
43 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | | - | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
0 commit comments