Skip to content

GPIO Permissions

Aaron W Morris edited this page Jun 3, 2024 · 4 revisions

Overview

Some single board computers do not permit non-root access to GPIO pins. Allowing non-root access requires a udev rule.

udev rule

sudo tee /etc/udev/rules.d/99-gpio.rules <<EOF
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", GROUP="dialout", MODE="0660", TAG+="uaccess"
EOF

Reboot!

Clone this wiki locally