orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
394 stars 189 forks source link

gpio permission denied #100

Open Olejan opened 7 months ago

Olejan commented 7 months ago

I use this library on a OrangePi 3 LTS board. When I try to run blink example it works fine. But when I try to run isr-osc example I get this error:

gpio: Unable to open GPIO edge interface for pin 1: Permission denied
wiringPiISR: unable to open /sys/class/gpio/gpio121/value: No such file or directory

If I run isr-osc example with root I get same error

sudo ./isr-osc

What is the promlem?

borex99 commented 6 months ago

Same as #98.

101 should fix this error.