Skip to content

i2c fails init on soft reboot #44

Closed
@ladyada

Description

@ladyada

a collision between #29 & auto-reset
if your main.py uses i2c it can't be re-run/saved because i2c will fail.

(i think this is also causing main.py with i2c in it to fail on first run but its impossible to tell cuz i can't see main.py error output)

>>> i2c = machine.I2C(machine.Pin('SCL'), machine.Pin('SDA'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: I2C bus init error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions