New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORANGE PI ZERO PIN #333

Open
l-sannin opened this Issue Apr 12, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@l-sannin

l-sannin commented Apr 12, 2017

Hello,
I test the pi4j 1.2 on my orange pi zero and only the pin 7 works, i found this wiringOp https://github.com/xpertsavenue/WiringOP-Zero
And drives all pins correctly, how can I remap or correct this on the pi4j?
Regards

@savageautomate

This comment has been minimized.

Member

savageautomate commented May 12, 2017

Pi4J's native lib for OrangePi is compiled against https://github.com/zhaolei/WiringOP
Does https://github.com/zhaolei/WiringOP not work with OrangePi Zero?

Here is one of the examples for using Pi4J (1.2-SNAPSHOT) with OrangePi:
https://github.com/Pi4J/pi4j/blob/master/pi4j-example/src/main/java/orangepi/GpioOutputExample.java

The current support OrangePi is still experimental and has not been fully tested.

@l-sannin

This comment has been minimized.

l-sannin commented May 12, 2017

Hello,
Thanks for your answer, I tested i2c and some GPIO pins, and some off them dont work, i found the same issue on the wiringOP C library, this because a bad pin map for the orange pi zero, but this fork https://github.com/xpertsavenue/WiringOP-Zero, drive all pins correctly, so, if you can check on this will be fantastic.
Regards

@savageautomate

This comment has been minimized.

Member

savageautomate commented May 12, 2017

Try this ....

When you start your Java app using the system property "pi4j.linking=dynamic", Pi4J will bypass its embedded native WiringPi bindings and attempt to dynamically link to your WiringXXX .SO libraries installed on your system.

Thanks, Robert

@l-sannin

This comment has been minimized.

l-sannin commented May 13, 2017

Hello,
I have test, and now works like a charm!!!.
Thanks a lot Robert

@jkandasa

This comment has been minimized.

jkandasa commented Aug 29, 2017

To avoid confusion on @savageautomate workaround,

Install WiringOP-Zero on your RaspberryPi OrangePi Zero.

@savageautomate

This comment has been minimized.

Member

savageautomate commented Sep 5, 2017

@jkandasa
Thanks for pointing out the mistake, I have updated the original entry to avoid confusion.

@savageautomate savageautomate referenced this issue Sep 5, 2017

Open

Add support for OrangePi #230

4 of 12 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment