Skip to content

I2C bus init error when specifying frequency on M0 #95

@deshipu

Description

@deshipu

On Feather M0, when I try to specify the clock frequency for the I2C bus, I get an OSError:

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

In addition, after the creation of that I2C object failed, any subsequent attempts at creating it result in a "Pin in use" errror:

>>> i2c = I2C(SCL, SDA)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Pin PA23 in use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions