Skip to content

Drivers should be outside of System.Device.Gpio #1182

@krwq

Description

@krwq

It seems to me we're going in the direction of putting all drivers into System.Device.Gpio. This has a long term pitfall: the library will grow in size indefinitely which is not desired - also all of the boards are useful having drivers public (i.e. for scenarios where driver is missing and user want to extend existing) which further pollutes the low level library with stuff most users won't need. When you use a specific board you really only need driver for this specific board.

I feel like we should have some mechanism of only using what you actually need. Simplest and straightforward example could be having a board specific nuget package with only driver for the specific board you're deploying to. For users wanting to have a generic version we could possibly have a way of detection and pulling it all but it should be pay for play and not obligatory (so i.e. System.Device.AutoDetectBoard package or something along the lines).

cc: @Ellerbach @joperezr @pgrawehr

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions