raspberrypi / pico-micropython-examples

Examples to accompany the "Raspberry Pi Pico Python SDK" book.
BSD 3-Clause "New" or "Revised" License
973 stars 222 forks source link

Pico W i2c issues #51

Closed dbuggz closed 2 years ago

dbuggz commented 2 years ago

I've had issues with a Pico W running latest MicroPython uf2 MicroPython v1.19.1 on 2022-09-20; Raspberry Pi Pico W with RP2040

Running 'i2c.py'

Traceback (most recent call last):
  File "<stdin>", line 5, in <module>
OSError: [Errno 5] EIO

same for a couple of different i2c devices.

lurch commented 2 years ago

You'll be better off asking for help at https://github.com/orgs/micropython/discussions as that's where MicroPython is actively developed.

dbuggz commented 2 years ago

Thanks Andrew, I found that CircuitPython handled the error more explicitly and adding the bus termination resistors solved the problem. Dave