mstrickland post at 2016-9-18 09:56:31

Orange Pi Lite and GPIO problems

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-wiringpi-library-on-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

fr4nc3sc0 post at 2016-9-26 15:53:58

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

ChrisAdmin post at 2016-10-5 18:43:25

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.
page: [1]
View full version: Orange Pi Lite and GPIO problems