Orange Pi Zero Plus-WiringPi modified version works

Recommended Posts

 I compared two boards (opi zero h3 and opi zero plus  h5) and found that  cpu pins for 26 gpio are the same .

so I modify the code in wiringPi  about cpu detection to force return true value .

and it works.


the step:

1. git clone https://github.com/xpertsavenue/WiringOP-Zero

2. modify the code in  WiringOP-Zero/wiringPi/wiringPi.c  (or using the  attached file to replace)。

3. make  && make install

4.  run "gpio readall "  to test

5.  run "gpio write 30 1"    (the red-led on, wiringpi pin 30 control red-led status).




Share this post

Link to post
Share on other sites



I used the wiringPi.c above, and


from make I get some error:

root@orangepizeroplus:/home/pi/WiringOP-Zero# make

ds1302.c:30:10: fatal error: wiringPi.h: No such file or directory
 #include <wiringPi.h>
compilation terminated.
Makefile:67: recipe for target 'ds1302.o' failed
make[1]: *** [ds1302.o] Error 1

instead of "make and make install"  I use:


chmod +x ./build
sudo ./build

this finish without an error


and the gpio`s are working well


thanks greetings





Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.