May 28, 20233 yr Hello Armbian forum, I need to have a GPIO interrupt on Orange PI5. I have successfully installed WiringOP and I am using it with C code. The problem is that the interrupt is not working, and I am receiving the following error. How can I proceed? Does anyone know how to enable the WiringOP interrupt on the GPIO PIN? Code C : #define AUX 13 wiringPiISR(AUX, INT_EDGE_FALLING, &MyFunction); Error: wiringPiISR: unable to open /sys/class/gpio/gpio92/value: No such file or directory PS. I have just successfully installed this version: Armbian 23.02 Jammy Gnome Edited May 28, 20233 yr by elsabz
May 31, 20233 yr I don't have experiences with wiringpi in c code, but did you look at the examples and do you use the "next" branch for the library? https://github.com/orangepi-xunlong/wiringOP/tree/next/examples
May 31, 20233 yr Author Hi @royk thanks for the answer, I had already looked in the library but I can't find anything different from the code I use, if you look at the isr.c example the call is the same as the one I use, except for the number of PINs that goes from 0 to 7, I tried to put PIN 0 but nothing changes, always the same error.
June 2, 20233 yr Author @royk With the command you suggested, when I run the code it no longer gives an error, but sadly the interrupt doesn't work! Is it possible that the orange PI 5 interrupt is not implemented at the hardware level?
June 2, 20233 yr @elsabz After setting "gpio export 46 in" and "gpio export 54 in" I can see it counts interrupts when I connect it to ground. test.c
June 8, 20233 yr Author @royk Unfortunately it doesn't work for me, but I have to do a test by grounding the input, I'm doing it this weekend, thanks
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.