Closed scout208 closed 2 years ago
Hi Scout282,
From the error log it shows that there may have been a problem when you tried to enable the HAT functionality from userspace. I will suggest you enable it again.
Please follow the guide:
https://github.com/up-board/up-community/wiki/Ubuntu_20.04#install-upboard-extras https://github.com/up-board/up-community/wiki/Ubuntu_20.04#add-groups and don't forget to add user to groups
Also before running your program, try to manually use the GPIO functionality from sysfs to ensure it worked . Example cd /sys/class/gpio && echo 27 > export
I think I must have made some mistake adding my user to the groups. I was typing my username instead of using ${USER}
in the commands, but using ${USER}
instead fixed the problem.
Awesome, glad to hear you spotted the issue.
I followed all of the instructions for enabling the HAT functionality from userspace on Ubuntu 20.04 and am still getting errors when I try accessing the GPIO as a normal user.