Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] How Use GPIO firefly-rk3399

40

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
40

【Linux】 How Use GPIO firefly-rk3399

Posted at 10/4/2018 22:14:09      View:3340 | Replies:2        Print      Only Author   [Copy Link] 1#
Last edited by ghsoftci In 10/4/2018 23:02 Editor

Hi

I have a board model firefly-rk3399, i installed ubunu 16.I want to send a signal with one free GPIO
The problem is I don't have a clue on how to do this.

I found ( /sys/class/gpio )and did the following.

1) echo 12 > export

2) cd  /sys/class/gpio/gpio12

3) echo "out" > direction and echo 1 > value

But did not work and please guide?????

thanks
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 10/8/2018 09:54:13        Only Author  2#
According to the new version of the kernel.
U need to set gpio12 to gpio1012 .
Reply

Use props Report

23

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
23
Posted at 11/30/2018 02:37:39        Only Author  3#
My Signal is very weak, but it seems to be working gpio12... i plug a led on the signal coming from the board but the brightness is almost nothing...
Any suggestion about boosting the signal coming from the gpio?
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