Skip to content

Make the specified frequency for busio.I2C be a ceiling, not an approximation #11080

Description

@dhalbert

Motivated by #11079

Fix I2C frequency setting so that the given frequency is a ceiling for the actual rate. Don't allow the frequency to be higher. The documentation current says it could be higher or lower, but this causes problems when a higher rate is too high for the attached peripheral.

This is less critical than #11079, because allowed I2C frequencies are more standardized, but I think it's still a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions