Jump to content

Orange Pi Zero Plus-WiringPi modified version works


noxlin

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).

 

 

wiringPi.c

Link to comment
Share on other sites

Hello,

 

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

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines