Skip to content

Encapsulate hardware interfaces in drivers #5

@sfe-SparkFro

Description

@sfe-SparkFro

The current driver implementation requires different classes/files for each combination of chip and interface, which may become unmanageable as hardware support grows. Would be better if the interfaces were encapsulated by the driver for each chip with a common interface.

Then, instead of things like:

camera = HM01B0_PIO(
    i2c,
    pins = ...,
    sm_id = ...,
    resolution,
    ...
)

Can do something like:

camera_interface = camera_rp2_dvp_pio(
    i2c,
    pins = ...,
    sm_id = ...,
)

camera = HM01B0(
    camera_interface,
    resolution,
    ...
)

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