Skip to content

busio.SPI: specify max frequency and desired frequency in constructor ? #2251

@dhalbert

Description

@dhalbert

Some chips have SPI peripherals that can vary in max frequency. For instance, the nRF52840 has 8MHz max normally, but has one that can do 32Mhz. Currently we have no way to specify which we would prefer at construction.

It would also be nice to specify the starting frequency in the constructor, rather than having to call configure(). The other configure() args could also be passed in, but that's less important.

Also, I'm not sure why it's called baudrate instead of frequency for SPI. We could change it, though maybe it's not worth it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions