View: 34470|Reply: 19

WiringOP for Orange pi zero

[Copy link]

1

threads

5

posts

35

credits

Novice

Rank: 1

credits
35
Published in 2017-1-25 20:41:50 | Show all floors |Read mode
Hello,
Is there a WiringOP version for Opi zero.
Or is there a screenshot for the proper mapping.

Thanks

3

threads

159

posts

110K

credits

Forum patriarch

Rank: 8Rank: 8

credits
12043
Published in 2017-1-25 21:14:28 | Show all floors
Edited by Tina at 2017-1-25 21:20

Hi,
I am not sure but I guess you want the 26 pin GPIO layout. If so you find that here

If you mean by "WiringOP" a version of the OPI zero with 2x13 pins you would have to ask the OPI guys.
I found only this 2x13 pin header on Aliexpress.
Edit:
I also found those 2x40. But I am sure the are cutable
Please click on reply when answering direct to me. That way I get a notification ;)

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
                                  Benjamin Franklin 1755

1

threads

5

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2017-1-25 21:25:51 | Show all floors
Edited by coscos at 2017-1-25 21:38

Thanks,
I have installed that connector and now want to control the IO s with a library, if possible WiringPi, WiringOp etc. I compile a led blink example for PC PLUS (H3) and able to toogle it by toggling GPIO_0 (wiringOp numbering), interestingly the same app works for Opi zero too (H2).
But I have problems with other GPIO's naming convention etc. And also not sure if my downloaded version of WiringOp(h3) can control SPI or (h2)correctly.

Any tips? Thanks.

1

threads

5

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2017-1-25 21:52:12 | Show all floors
Ok I have somewhat figured it out. Pins seem to be mapped properly, I will check further and report back.

So one more question, is it possible to use SPI-CS0 pin as GPIO? (Opi PC or Opi Zero).

2

threads

9

posts

68

credits

Registered member

Rank: 2

credits
68
Published in 2017-1-31 22:52:12 | Show all floors
Hello,

I also have trouble to find out how to use the gpio in the orange pi zero. Likely I installed the wrong kind of wiringOP. Somewhere i had to choose between an orange pi pc and another orange pi model. there was no tab for choosing the zero. What should I use to program the zero in C language?

Cordially,

Eduard

5

threads

12

posts

214

credits

Intermediate member

Rank: 3Rank: 3

credits
214
Published in 2017-2-10 23:04:05 | Show all floors
Is there any solutions?

2

threads

5

posts

30

credits

Novice

Rank: 1

credits
30
Published in 2017-2-16 21:46:32 | Show all floors
Hi,

I am using git clone https://github.com/zhaolei/WiringOP.git -b h3  to control GPIO on Orange Pi Zero.

It works fine for GPIO 0, 2, 3, 7, 8, 9 But does not work for GPIO 1, 4, 5, 11.

Is it because or wrong mapping ?

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-2-18 07:43:02 | Show all floors
gailu replied at 2017-2-16 21:46
Hi,

I am using git clone https://github.com/zhaolei/WiringOP.git -b h3  to control GPIO on Orange P ...

No one can reply that you don't exhibit your cord.

2

threads

5

posts

30

credits

Novice

Rank: 1

credits
30
Published in 2017-2-18 11:31:01 | Show all floors
  1. No one can reply that you don't exhibit your cord.
Copy code

Got the difference between OPI PC and OPI Zero mapping. Its working fine now.

1

threads

5

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2017-2-19 04:50:41 | Show all floors
Hi, I figured out using WiringOp, and drive a 5110 LCD with orange pi zero using SPI and some pins for reset, data/command, CS etc. I will write a tutorial soon which covers how to set up a cross-compiling environment and using eclipse IDE to compile your programs for orange pi zero and an LCD demo project step by step.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list