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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 4216|Reply: 1

Orange Pi Zero Plus using Ubuntu: problem with GPIO

[Copy link]

1

Threads

1

Posts

18

Credits

Novice

Rank: 1

Credits
18
Post time 2018-6-28 20:36:55 | Show all posts |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 the Code


Can someone help me with this?

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

8

Threads

617

Posts

4156

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4156
Post time 2018-6-29 00:16:07 | Show all posts
but I'm having trouble with the analog audio card


What kind of troubles?
You have to log in before you can reply Login | Register

Points Rules

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

2019-11-13 02:30 GMT+8 , Processed in 0.028634 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list