I'm having an issue with this plugin: Octoprint-Filament-Reloaded-OrangePi
The board is an orange pi zero plus (H5) Armbian:
pi@octo:~$ uname -a
Linux octo 4.14.65-sunxi64 #6 SMP Mon Aug 20 20:01:45 CEST 2018 aarch64 GNU/Linux
The following error appears in the log:
"IOError: [Errno 13] Permission denied: '/sys/class/gpio/gpio14/direction'"
The plugin appears to set up the pin correctly via:
pi@octo:~$ cat /sys/class/gpio/gpio14/direction
in
ls -al /sys/class/gpio/
-rwxrwx--- 1 root gpio 4096 Aug 27 20:07 export
lrwxrwxrwx 1 root root 0 Aug 27 20:16 gpio14 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip1/gpio/gpio14
lrwxrwxrwx 1 root root 0 Dec 31 1969 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0
lrwxrwxrwx 1 root root 0 Dec 31 1969 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352
-rwxrwx--- 1 root gpio 4096 Aug 27 19:55 unexport
The gpio permissions seem to be proper; I can do the following as pi user (without sudo):
pi@octo:~$ echo out | tee /sys/class/gpio/gpio14/direction
out
pi@octo:~$ echo in | tee /sys/class/gpio/gpio14/direction
in
As pi user, I can:
pi@octo:~$ echo out | tee /sys/class/gpio/gpio14/direction
out
pi@octo:~$ echo 0 > /sys/class/gpio/gpio14/value
pi@octo:~$ cat /sys/class/gpio/gpio14/value
0
pi@octo:~$ echo 1 > /sys/class/gpio/gpio14/value
pi@octo:~$ cat /sys/class/gpio/gpio14/value
1
Seems to be an issue with the plugin.
Thanks for your feedback.