Skip to content

Open gpio inside module make it impossible to open it in other places #7

@webhive

Description

@webhive

May be I missing something, but this line prevent open gpio in other places of code.

GPIO = gpio:open(),

May be better open in externally and just pass to lora module same way as SPI?

Attempt to call gpio:open() in any other place cause this:

E (8694) gpio_driver: Only a single GPIO driver can be opened.
Failed to load port "gpio".  Ensure the port is configured properly in the build.

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