Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Cannot get GPIO control working via sysfs!

11

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
11

Cannot get GPIO control working via sysfs!

Posted at 12/15/2018 00:49:16      View:3938 | 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 ?
Reply

Use props Report

11

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
11
Posted at 12/15/2018 09:20:20        Only Author  2#
Is there no proper, official documentation for the GPIO pins on the ROC-RK3328-CC ?
The only "documentation" I've seen online doesn't work https://libre.computer/2018/05/1 ... e-for-aml-s905x-cc/
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/18/2018 17:50:18        Only Author  3#
@dijitanix , which pin do you want to manipulate?
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list