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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: linga51

GPIO library - WiringPi

[Copy link]

0

Threads

19

Posts

111

Credits

Registered member

Rank: 2

Credits
111
Post time 2015-10-21 01:31:39 | Show all posts
loboris replied at 2015-10-19 19:54
Everything you are looking for is already on this forum, just look harder.
You don't need to use R ...




And @sauberpauli nice one

0

Threads

1

Posts

18

Credits

Novice

Rank: 1

Credits
18
Post time 2015-10-28 21:59:15 | Show all posts
jacer replied at 2015-10-17 20:05
For H3 python GPIO check it here:
H3 GPIO github

broken link.

18

Threads

303

Posts

7731

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7731
Post time 2015-10-30 11:50:03 | Show all posts

WiringOP a GPIO library for Oangepi PC/ Plus is released for testing. Click link below.Click HERE




3

Threads

44

Posts

963

Credits

Senior member

Rank: 4

Credits
963
Post time 2015-12-23 03:19:28 | Show all posts
I downloaded the wiringpi from the link in jacer post above. Credict goes to Zhaolei or sauberpauli.
WiringOP, a GPIO library for H3 based OPI-PC, OPI-PLUS

None of the blink examples seem to work.

And trying to turn on a pin from the command line does not work.

gpio mode 0 out
gpio write 0 1

*should* turn on physical pin 11; it does not

echo 0 > /sys/class/gpio_sw/PA1/data
does turn on pin 11

2

Threads

144

Posts

868

Credits

Senior member

Rank: 4

Credits
868
Post time 2016-2-11 10:45:07 | Show all posts
Is it still the case that you can't even use interrupts with the GPIO-pins on Orange Pi and would have to resort to god damn polling?

0

Threads

6

Posts

114

Credits

Registered member

Rank: 2

Credits
114
Post time 2016-2-12 15:49:08 From the mobile phone | Show all posts
Same problem here. I 'm waiting for a solution. Now i 'm polling with a while true cycle.  I understand the problem is that wiringop works on sys/classi/gpio_sw/* instead of  /sys/class/gpio/*

0

Threads

6

Posts

114

Credits

Registered member

Rank: 2

Credits
114
Post time 2016-2-12 15:50:04 From the mobile phone | Show all posts
.... So gpio export doesn 't work

2

Threads

144

Posts

868

Credits

Senior member

Rank: 4

Credits
868
Post time 2016-2-12 18:18:09 | Show all posts
I am quite disappointed how little interest there is on these forums for actually making anything with OPis -- everyone's just trying to use them as cheap desktops, Kodi-players or emulator-systems and almost no one wants to actually use the GPIO-pins and the various buses they offer for anything and such everything interesting is just broken. I still haven't figured out how to use H/W PWM, either, and resorting to software-emulation of PWM sucks. Having to poll GPIO-pins for state-changes sucks, too, and is a horrible waste of clock-cycles. I'm also terribly bothered by the fact that Steven and the folks behind the OPis didn't bring out SDIO-pins and the likes out on the boards that don't have WiFi and/or eMMC -- the pins are there on the SoC and they're obviously not in use when there is no WiFi or eMMC, so there's no good reason not to bring them out for those folks who want to make use of them!

7

Threads

81

Posts

317

Credits

Intermediate member

Rank: 3Rank: 3

Credits
317
Post time 2016-2-12 21:41:20 | Show all posts
WereCatf replied at 2016-2-12 11:18
I am quite disappointed how little interest there is on these forums for actually making anything wi ...

I have not received my OPIs yet, but judging from the forum comments and the sad state of basic software and documentation I've got
rather mixed feelings. Proper schematics, working uboot/kernel/mini-debian, proper GPIO ( PWM, I2C, SPI, USB and all the goodies from
the H3 exposed and accessible) would make an unbeatable combination. I've used RasPis as wireless (NRF24) data collectors for ATTINY84
based low power sensors/actuators and was planning to evaluate OPIs for that purpose too. If I needed a cheap Android TV stick I would buy one.

Lengthy discussions about a factory-overclocked non working marketing gadgets are useless. What I need from a customer viewpoint is
sound basic functions working 100%, documented and predictable behaviour of all components.  

"Raspberry Pi compatible" is a complete joke, what they share is the physical layout of 40 pins and the 5v input power.






0

Threads

12

Posts

132

Credits

Registered member

Rank: 2

Credits
132
Post time 2016-2-15 17:24:33 | Show all posts
WereCatf replied at 2016-2-11 10:45
Is it still the case that you can't even use interrupts with the GPIO-pins on Orange Pi and would ha ...

The orginal wiringpi.com uses polling tooo ... not realy interrupts. See source code of wiringpi
It is not so easy to use realy interrupts in user space of a linux program. See http://www.linuxquestions.org/qu ... -interrupts-696628/

A possibility would be to extend the kernel driver "pinctrl-sunxi.c" and send a signal to the user program. Not magic, but not so easy .
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 17:32 GMT+8 , Processed in 0.035543 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list