We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e6c638 commit f71c7a2Copy full SHA for f71c7a2
LiveObjects/hal.py
@@ -246,7 +246,7 @@ def get_i2c():
246
i2c = machine.SoftI2C(scl=machine.Pin(scl), sda=machine.Pin(sda), freq=100000)
247
if i2c.scan() and len(i2c.scan()) < MAX_DEV_NB:
248
return i2c
249
- except ValueError:
+ except ValueError: # next sda, scl
250
pass
251
except AttributeError: # Pycom MicroPython 1.20.2.r6 [v1.11-c5a0a97] on 2021-10-28
252
i2c = machine.I2C(0)
0 commit comments