How do I pass a member function to IRQ handler? (without making static) [duplicate]
This question already has answers here: How can I pass a member function where a free function is expected? (9 answers) Why callback functions needs to be static when declared in class (6 answers) Closed 7 mins ago. This post was edited and submitted for review 1 min ago. I’m working on a project where […]
How do I pass a member function to IRQ handler? (gpio_set_irq_enabled_with_callback())
I’m working on a project where I’m setting up GPIO interrupts on a Raspberry Pi Pico using the Pico SDK. I have a class lcdmenu with a constructor that initializes a GPIO interrupt using gpio_set_irq_enabled_with_callback.