Orange Pi One/Lite ...
 
Notifications
Clear all

Orange Pi One/Lite (Tutorial): use the GPIO in Python, pinouts


christophe
Posts: 251
Admin
Topic starter
(@chris)
Member
Joined: 4 years ago
wpf-cross-image

Orange Pi has a 40-pin extension connector (GPIO) compatible with the Raspberry Pi (model B +). In this tutorial, we will install python as well as the pyA20 library adapted to the GPIO of Orange Pi. On paper, the connector is compatible, only flat the call of the pins is different which requires to resume…

4 Replies
d3ef823777f57a73a317de3f0447de5c?s=80&d=mm&r=g
Posts: 1
 John Alejandro Valero Henao
Guest
(@John Alejandro Valero Henao)
Joined: 4 years ago

Hola amigo, configure una Orangepi One nueva con Armbian server, ya lo actualice y sigo tus pasos pero me da este error..
bee8046f0c6f87119f49e23590738c5d23d1c4d222ae8fbe7160b78246523ad4
File "test.py", line 2
from pyA20.gpio import gpio from pyA20.gpio import port
^
Gracias de antemano por la ayuda.

Reply
1 Reply
34c5e320a804874bcebc1b7aaeb6406f?s=80&d=mm&r=g
 Daniel Sojo Díez
Guest
(@Daniel Sojo Díez)
Joined: 4 years ago

Posts: 1

Hi John Alejandro, I had the same problem. First you have to install python-pip to manage python modules

> sudo apt-get install python-pip
Then install the module pyA20 to run the sample.

> sudo pip install pyA20

Hope it helps,

Reply
2ef491b67c14abddd7af401842ee550d?s=80&d=mm&r=g
Posts: 1
 tony
Guest
(@tony)
Joined: 4 years ago

Can you help me i get a segmentation fault error.

Reply
1 Reply
christopher 1
 Projets DIY
Guest
(@Projets DIY)
Joined: 5 years ago

Posts: 205

Hello Tony. I'm sorry, but i think you need to re-install the system 🙁 It's the problem with SD Card and SBC.

Reply
Share:
Join Us!
Recent Posts
Last Articles
DIY Projects
DIY Projects