|
Cannot get GPIO control working via sysfs!
Posted at 12/15/2018 00:49:16
View:3945
|
Replies:2
Print
Only Author
[Copy Link]
1#
Hello,
I am trying to control GPIO pins using sysfs but nothing is working. I have tried both armbian and ubuntu.
Here's my code:
[Trying to control Pin 40 on the board]
on debian, I tried:
echo "93" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio93/direction
echo 1 > /sys/class/gpio/gpio93/value
on ubuntu, I tried the above and also tried using 1093 instead of 93. Nothing works.
I get no errors, but the pin voltage is not changing.
Can someone please point me to a properly documented way to control GPIO on ROC-RK3328-CC ?
|
|