up-board / up-community

94 stars 11 forks source link

User still can't access GPIO pins after adding to groups and installing upboard-extras #6

Closed scout208 closed 2 years ago

scout208 commented 2 years ago

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.

Screenshot from 2021-10-13 11-41-14

CammyTetehJr commented 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

scout208 commented 2 years ago

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.

CammyTetehJr commented 2 years ago

Awesome, glad to hear you spotted the issue.