Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 4068|Reply: 2

Orange Pi Lite and GPIO problems

[Copy link]

1

Threads

1

Posts

5

Credits

Novice

Rank: 1

Credits
5
Post time 2016-9-18 09:56:31 | Show all posts |Read mode
I am trying to get the GPIO working on an Orange Pi Lite.

I installed the WiringOP here (https://github.com/zhaolei/WiringOP).  I found this here (https://yudanta.me/installing-wi ... orangepi-pc-device/).

The gpio command works but I cannot change any pin values.

Is the 40 pin header pinout on the Lite the same as a Raspberry Pi?

Thanks, Mark

0

Threads

1

Posts

4

Credits

Novice

Rank: 1

Credits
4
Post time 2016-9-26 15:53:58 | Show all posts
hi,

use this command:
modprobe gpio-sunxi


gpio mode 0 out
gpio write 0 1
+ the ping 11 change value
gpio readall
gpio write 0 0
+ the ping 11 change value
gpio readall

0

Threads

3

Posts

21

Credits

Novice

Rank: 1

Credits
21
Post time 2016-10-5 18:43:25 | Show all posts
Edited by ChrisAdmin at 2016-10-5 18:48

Hi mstrickland,

https://yudanta.me/installing-wi ... orangepi-pc-device/
Worked fine for me, mid page "gpio readall" will show a table print out of the header pins, they seem the same as the rPi.
To orientate yourself to whatever kind of orange pi you have, check for the small arrow on the PCB at the edge of the header pins, thats physical pin 1, then match it against the print out above.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-20 22:29 GMT+8 , Processed in 0.028013 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list