Commit ac70218
committed
esp32/machine_i2c: Correct commit errors and add default pins for S2.
This addresses issue micropython#17103.
The default I2C init does not require setting SCL or SDA but
the default pins for C3, S3, and S2 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 and S2.
This pull request updates pin settings for C3, S3 and S2 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 b85880a commit ac70218
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
| |||
0 commit comments