-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IRQ not working #569
Comments
Let me check it and update it. |
@FlorianRueb I fixed this issue. Could you please try it with this FW? kaluma-rp2-pico-1.1.0-beta.1_test_0429.uf2.zip I verified it with this code.
|
Hi Jay, yes, it now seems to work properly! Thank you! It seems to me that it is not possible to set two different IRQ Events on the same pin, right? I wanted to set up two different callback functions in case the input pin is RISING or FALLING. Setting up two different callbacks ends up in a stop. |
@FlorianRueb Yes, we support only one callback for the one pin but I don't know why you need two difference callback function for the RISING and FALLING. the call back function has the pin and mode value and you can distinguish the RISING and FALLING using mode value in the callback function. So you don't need to have separate two callback functions for one pin. you can implement two different RISING and FALLING process in the one callback function. |
Hi there!
I don't get the GPIO.irq function working. When I try to use the code in the example (using PIN 26 and 27 for Input / Output), I get plenty of lines with "Event undefined is triggered on the GPIOundefined" and the code stops to work.
I also tried to code a small IRQ-driven function, but the code stops after the first IRQ event and I don't know where the problem is based on. Maybe you have any hint for me? I am using the Seeeduino XIAO Board where Input 0 and 1 is connected to GPIO26/27
Here's my code:
[Edited]: Code example had an error...
Thanks,
Florian
The text was updated successfully, but these errors were encountered: