Skip to content

Unparsed config option 'pin: gpio118' detected in section [power printer]. #755

Answered by yan76net
yan76net asked this question in Q&A
Discussion options

You must be logged in to vote

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
And check
orangepi@orangepi3-lts:
$ gpio readall
+------+-----+----------+--------+---+ OPi 3
| GPIO…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yan76net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant