-
Hello! When I add: Moonraker gives an error: Failed to load power device [power printer] There are:
2)OS Debian 3)Klipper FIRMWARE_VERSION:v0.11.0-175-gcba119db 4)Moonraker Version:v0.8.0-35-geff0901 5)orangepi@orangepi3-lts:~$ python3 --version 6)The pin is not busy with anything: But Moonraker itself writes an error in the logs: [gpio.py:_request_gpio()] - Unable to init gpiochip0:gpio118. Make sure the gpio is not in use by another program or exported by sysfs. I don't understand why pin 7 (gpio118) is disliked. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
sudo apt-get -y install gpiod systemctl restart moonraker Now the Moonraker config itself: Moonraker doesn't swear anymore :) |
Beta Was this translation helpful? Give feedback.
sudo apt-get -y install gpiod
sudo usermod -a -G gpio $user
usermod -a -G tty,disk,dialout,sudo,audio,gpio,fly,plugdev,users,systemd-journal,input,netdev,ssh,mnrkrsudo $user
chown -R root:gpio /sys/class/gpio 似乎不需要
cd /etc/udev/rules.d/60-gpiod.rules
cat 60-gpiod.rules /etc/udev/rules.d/60-gpiod.rules
#udev rules for gpio port access through libgpiod
SUBSYSTEM=="gpio", KERNEL=="gpiochip[0-4]", GROUP="gpio", MODE="0660"
EOF
systemctl restart moonraker
!!!!!!!!!!!!!!!!!
And most importantly. On my board 118 pin was not in bank 0, but in bank 1.
Execute
orangepi@orangepi3-lts:
$ gpioset 1 118=1$ gpio readallAnd check
orangepi@orangepi3-lts:
+------+-----+----------+--------+---+ OPi 3
| GPIO…