Skip to content

RP2: Hard I2C not working #15120

@massimosala

Description

@massimosala

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues matching this bug, and didn't find any.

Port, board and/or hardware

rp2

MicroPython version

MicroPython v1.22.2

Reproduction

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
bus = I2C(id = 0, scl = Pin(9), sda = Pin(8), freq = 100_000)
display = SSD1306_I2C(128, 64, bus)

Expected behaviour

ssd1306 working

Observed behaviour

Failure with errors EIO / ETIMEDOUT.

Tested with id 0 and 1, on different pins.
Works like a charm using SoftI2C.

Additional Information

Could be related to this ticket ?
RP2: Hard I2C is intolerant of clock stretching
#8167

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions