javalinuxraspberry-piorange-pi

pi4J For Orange Pi Plus 2


for a school project I recently bought an Orange Pi +2 hoping to use it to control a few electronics with the GPIO pins. I have many years of Java experience so I naturally wanted to write my code in that language. When trying to install pi4j which is a java library for raspberry pi I get this error:

mackenzie@OrangePI:~$ sudo java -jar LCD.jar
sudo: unable to resolve host OrangePI
Unable to determine hardware version. I see: Hardware   : sun8i,
- expecting BCM2708 or BCM2709. Please report this to projects@drogon.net

I was wondering if anyone had any ports for the Orange Pi and if not I will have to write my program in C. I am running Debian 8 jacer 2 as the os.


Solution

  • Experimental support for OrangePi is now included in the latest Pi4J v1.2-SNAPSHOT builds. Please be aware that this is largely untested at this time. Feel free to try it out and report issues to the project.

    I'm afraid that the WiringPi port for OrangePi (WiringOP) may be slightly outdated and may not support the newer/latest OrangePi hardware models, but more testing is needed to confirm which models are working.