noxlin Posted August 28, 2018 Posted August 28, 2018 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 1
pumuckl Posted June 16, 2019 Posted June 16, 2019 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
Recommended Posts