Skip to content

gpiodevice: deprecate get_pins_for_platform #5

@Gadgetoid

Description

@Gadgetoid

Along with get_pins_for_platform, most platform handling code should probably be dropped. It causes more problems than it solves, requiring downstream libraries to maintain a list of supported platforms and pin labels.

If manufacturers want their 40-pin GPIO header to be compatible with gpiod based libraries out of the box, they will need to copy the Raspberry Pi line labelling convention normalised here: raspberrypi/linux@bd9542b

Otherwise, users can just supply their own labels or (LineRequest, offset) tuples to describe the pins they want the library to use. Support for handling the latter case gracefully at the gpiodevice level is in progress here: #4

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