Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GPIO not working on OrangePi Win Plus with Python

Featured Replies

Hello every one I'm new to this site and I have recently purchased an Orange Pi Win Plus but got a lot of issues in configuring it.
I'm now able to blink LED through Shell and C with WiringPi but I couldn't find any working Python 3 based Library for GPIO.

I installed WiringPi from : https://github.com/OrangePiLibra/WiringPi

This actually helped me to access GPIO through C/C++ and Shell but I couldn't find any thing for Python that's working.

I came accross a new Python Library : "pyA64" but its not working. Also, the library "OPi.GPIO" doesn't supports my Board.
I also tried this : https://github.com/lanefu/WiringPi-Python-OP
but that's makes my "gpio" command to stop functioning.

I need help!!
Does anyone knows how to access GPIO on Orange Pi Win Plus through Python ?

I never tried to use directly the GPIO with c/c++ but I skipped the whole hassle to find a working overlay using an 8 way i2c GPIO port expander.  If you have electronic skills you can buy this chip:

http://www.ti.com/lit/ds/symlink/tca9554.pdf

and make a board for it or you can go with a plug&play alternative like this:

https://www.abelectronics.co.uk/p/54/IO-Pi-Plus

 

You can manage the the i2c bus enabling it's overlay (add in /boot/armbianEnv.txt overlays=i2c0), install i2ctools (apt-get install i2c-tools) and smbus2 library for python (pip install...)

good luck!

 

I'm starting with the orange pi win plus. Does anyone have tips on how to install phyton on it?

 

Thank the all ;D

On 02/07/2018 at 02:22, Igor said:


O Python é instalado por padrão ... enquanto as bibliotecas de E / S do Python não são.

 

I need tips to use GPIO on orange pi Win plus. All my attempts were flawed :(

There are many ways to use GPIO. You can use classic sysfs, ie : /sys/class/gpio

You can also take the python Pine64 library : https://github.com/swkim01/RPi.GPIO-PineA64

You can even use that one since it has been ported for H5 with proper 64bits pointers : https://github.com/herzig/orangepi_PC_gpio_pyH5

 

EDIT : There is also this one coming from A64-OlinuXino : https://files.pythonhosted.org/packages/29/a8/e9ce35c362e6340713bbbffcf260c4ffca87b404d9811e5d400f33e6c5c8/pyA64-0.1.0.tar.gz

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.