please choosego to mobile | Continue to access the PC version
View: 6975|Reply: 1

Orange Pi Zero Plus using Ubuntu: problem with GPIO

[Copy link]

1

threads

1

posts

18

credits

Novice

Rank: 1

credits
18
Published in 2018-6-28 20:36:55 | Show all floors |Read mode
Edited by py5bk at 2018-6-28 20:38

Hello friends!

I'm using on my Orange Pi Zero + board the Oficial Ubuntu image of Orange Pi. At first it's perfect. I made the package installations perfectly.
But I'm having trouble working with the gpio pins. I used Armbian before, but I'm having trouble with the analog audio card when I use Armbian, which is not the case with Ubuntu.
My problem when using the Ubuntu image in my Orange Pi Zero + is that the gpio is different. Its path is /sys/class/gpio_sw instead of /sys/class/gpio ..
I would like to know if it is possible to change this system from gpio to the one I can work like armbian ..
I usually command the ghosts as follows:

  1. echo 14 > /sys/class/gpio/export
  2. echo out > /sys/class/gpio/gpio14/direction
  3. echo 0 > /sys/class/gpio/gpio14/value
  4. echo 1 > /sys/class/gpio/gpio14/value
Copy code


Can someone help me with this?

From now on I am very grateful for the attention!                                
Ricardo A Seco
http://www.py5bk.net

9

threads

641

posts

4379

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4379
Published in 2018-6-29 00:16:07 | Show all floors
but I'm having trouble with the analog audio card


What kind of troubles?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list