toradex / torizon-samples

All sample code related to TorizonCore project.
The Unlicense
32 stars 24 forks source link

python example error #3

Closed Skill3t closed 2 years ago

Skill3t commented 2 years ago

Hello i tried the python example unter https://github.com/toradex/torizon-samples/blob/bullseye/gpio/python/main.py an get the following error. [Errno 0] Success: 'error creating GPIO chip iterator' in line 7. So i want to use the GPIO pins on my IMX6ULL with 1 GB an Troizon with VSCode Extension. Any ideas what i did wrong?

Skill3t commented 2 years ago

Ok i did not add the devices to the configuration. Maybe a little hint in the Dokumentation will help. So log in to the board via SSH and run 'ls /dev/gpio* -la ' this will list a couple of entrys like this /dev/gpiochip0 add ths in VS-Code Extension under devices. Then add 'RUN usermod -a -G gpio torizon' to buildcommands to add user torizon to the gpio group (witch only has Access to the pins)