Skip to content

GPIO Interrupt handler per GPIO #237

@Miroito

Description

@Miroito

I'd like to use 2 different functions to handle 2 different gpio interrupts in a program using the esp32c3-hal.

I can't find a way to do this with this hal given that the Interrupt enum only contains a GPIO variant that doesn't care which pin triggered the interrupt.

Is there a prospect of supporting this functionality in this crate? Is there a workaround that I can use now?

The Pin trait doesn't allow it right now but it would be great to just be able give listen a function to run on the defined event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions