Go to advanced search

by Hexgen
Mon Feb 20, 2017 7:15 pm
Forum: Troubleshooting
Topic: GPIO No such file or directory
Replies: 5
Views: 5213

Re: GPIO No such file or directory

I would like to add, for clarity, that my initial confusion was around elevated privileges. I was accessing GPIO via C++ and standard out was reporting that the pin I was setting was 0, irrespective of what I set it to. I had omitted "sudo" and while my C++ program ran happily, writing to GPIO under...
by Hexgen
Mon Feb 20, 2017 7:53 am
Forum: Troubleshooting
Topic: GPIO No such file or directory
Replies: 5
Views: 5213

Re: GPIO No such file or directory

In my defence I was super tired. Still though, wow.

Thanks rpdom!
by Hexgen
Sun Feb 19, 2017 8:17 pm
Forum: Troubleshooting
Topic: GPIO No such file or directory
Replies: 5
Views: 5213

GPIO No such file or directory

So this is driving me insane. I have an LED on GPIO 21. root@RP0:/sys/class/gpio/gpio21# echo "out" > direction root@RP0:/sys/class/gpio/gpio21# echo "1" > value LED lights up. However; root@RP0:/sys/class/gpio/gpio21# echo "out" > /sys/class/gpio21/direction -bash: /sys/class/gpio21/direction: No s...

Go to advanced search