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?

It's a fresh raspbian installierbar, with the only Addition of 1wire and snmp.
I'd expect /sys/class/gpio/gpio<pinnumber>/value there.

Zeige Konversation

@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 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.

· · Web · 0 · 0 · 1
Melde dich an, um an der Konversation teilzuhaben

Eine Mastodon-Instanz gehostet im Thüringer Wald von FeM e.V.