Well, thats pretty recursive, I guess.
pi@raspberrypi:~ $ cat /sys/class/gpio/gpiochip0/device/gpio/gpiochip0/device/gpio/gpiochip0/device/gpio/gpiochip0/device/gpio/gpiochip0/
base device/ label ngpio power/ subsystem/ uevent
And you can go on, and on, and on like that.
What's wrong with you RaspberryPi?
@alsternerd I'm not sure what you are trying to do, but did you call "echo «pinnumber» > /sys/class/gpio/export" beforehand?
And maybe you need to change /sys/class/gpio/gpio0/direction to "in" or "out", too.
The package "sysfsutils" can help to make this permanent and assign user permissions, if needed.
@mehdorn Hm, I did try to set the pins through /boot/config.txt with
gpio=18,20=pu,ip ( pullup, input )
@mehdorn This seems to work, thank you.
SO I do have to choose the echo and sysfsutils options over /boot/config.txt.
I hoped this had to be done with a one-line. :D
@alsternerd I prefer the sysfs variante over /boot/config.txt, as it works with Olimex, BananaPC, …, too.
@alsternerd yes, that's like this on every Linux system :) It's a feature, so you can get to the other sysfs related nodes when you only have one of them. Symlinks make it possible.
@daniel_bohrer But therw's all of them, direvtly accessible via /. I don't really geht it. Which Software is not able to go back a folder?
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!