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

12

Posts

132

Credits

Registered member

Rank: 2

Credits
132
Post time 2015-10-9 17:13:16 | Show all posts
Edited by sauberpauli at 2015-10-9 17:16

I have adapted the wiringpi library (http://wiringpi.com/) to the Orange Pi PC.
Basic was the adaptation of https://github.com/LeMaker/WiringBP "banana pi pro" library.

Changes  ...
- 1. CPU from A20 to H3
- 2. Header Pinout
- 3. /dev/i2c device
- 4. gpio utility

Please test and check the version.



This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

5

Threads

355

Posts

2128

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2128
Post time 2015-10-9 20:55:33 | Show all posts
Edited by fritz at 2015-10-9 13:56

Good work!
Not tested yet
Why you do not put this on github so everybody can access it and can propose changes or add something via pull request etc. ?
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

2

Threads

9

Posts

133

Credits

Registered member

Rank: 2

Credits
133
Post time 2015-10-10 03:09:17 | Show all posts
sauberpauli replied at 2015-10-9 17:13
I have adapted the wiringpi library (http://wiringpi.com/) to the Orange Pi PC.
Basic was the adapt ...

Thank you! it helped me

0

Threads

1

Posts

10

Credits

Novice

Rank: 1

Credits
10
Post time 2015-10-11 10:42:49 | Show all posts
excellent!
Reply

Use magic Report

3

Threads

39

Posts

189

Credits

Registered member

Rank: 2

Credits
189
Post time 2015-10-11 18:28:28 | Show all posts
Great news ! tnx !

0

Threads

2

Posts

8

Credits

Novice

Rank: 1

Credits
8
Post time 2015-10-15 17:58:13 | Show all posts
Thank you very much for your outstanding work you have done for the community!!

Im a biggener of linux/raspi/opi - so it is really a help for me!

let me ask a question : if the wPi -1 does it mean, that i can not modify it? is it correct? Or if I need to use wPi 0,2,3 /used in my scripts/ I have modify the library you posted?
Thanks in advance - and sorry asking this basics...

18

Threads

303

Posts

7913

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7913
Post time 2015-10-17 20:05:01 | Show all posts
For H3 python GPIO check it here:
H3 GPIO github

3

Threads

13

Posts

81

Credits

Registered member

Rank: 2

Credits
81
Post time 2015-10-19 18:25:18 | Show all posts
I have Orange Pi PC. There is no schematic, no /sys/class/gpio_sw/, no documentation that I can find, none of the examples I've seen work for GPIO - in fact looking through the Debian Jessie folders I can see nothing to do with GPIO whatsoever.

What way is this to sell a product? Can we have a working Raspbian - as promised in the advertising - that handless GPIO properly along with everything else.

If Orange Pi are not looking in - does anyone have any ideas how to get GPIO working on Orange Pi PC.  there is sun-xi stuff on the SD as far as I can tell and no /devices/class/gpio-anything?

3

Threads

13

Posts

81

Credits

Registered member

Rank: 2

Credits
81
Post time 2015-10-19 18:26:44 | Show all posts
Orange PI PC - Raspbrian - can't find working version.
GPIO for Orange PI PC - can't find anything that works.

10

Threads

448

Posts

3989

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
3989
Post time 2015-10-19 19:54:58 | Show all posts
scargill replied at 2015-10-19 11:26
Orange PI PC - Raspbrian - can't find working version.
GPIO for Orange PI PC - can't find anything t ...

Everything you are looking for is already on this forum, just look harder.
You don't need to use Raspbian, it is just Debian adapted for RaspberryPI and it makes no sense to use it on OrangePI, use Debian or Ubuntu instead.

You have to log in before you can reply Login | Register

Points Rules

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

2020-5-30 01:50 GMT+8 , Processed in 0.031623 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list