please choosego to mobile | Continue to access the PC version
Author: linga51

GPIO library - WiringPi

[Copy link]

1

threads

20

posts

122

credits

Registered member

Rank: 2

credits
122
Published in 2015-10-21 01:31:39 | Show all floors
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
Published in 2015-10-28 21:59:15 | Show all floors
jacer replied at 2015-10-17 20:05
For H3 python GPIO check it here:
H3 GPIO github

broken link.

18

threads

303

posts

9569

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9569
Published in 2015-10-30 11:50:03 | Show all floors

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




3

threads

44

posts

1118

credits

Gold member

Rank: 6Rank: 6

credits
1118
Published in 2015-12-23 03:19:28 | Show all floors
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

1066

credits

Gold member

Rank: 6Rank: 6

credits
1066
Published in 2016-2-11 10:45:07 | Show all floors
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
Published in 2016-2-12 15:49:08 from mobile | Show all floors
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
Published in 2016-2-12 15:50:04 from mobile | Show all floors
.... So gpio export doesn 't work

2

threads

144

posts

1066

credits

Gold member

Rank: 6Rank: 6

credits
1066
Published in 2016-2-12 18:18:09 | Show all floors
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
Published in 2016-2-12 21:41:20 | Show all floors
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
Published in 2016-2-15 17:24:33 | Show all floors
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 need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list