Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2200|Reply: 2

Pi4J on Orange PI PC

[Copy link]

1

Threads

2

Posts

13

Credits

Novice

Rank: 1

Credits
13
Post time 2016-10-9 15:10:17 | Show all posts |Read mode
Hi,

I have Orange PI PC with Armbian Debian Jessie on it.
Everything works except PI4J, It shows error on running java program:

<--Pi4J--> GPIO Control Example ... started.
Unable to determine hardware version. I see: Hardware        : sun8i
,
- expecting BCM2708 or BCM2709.
If this is a genuine Raspberry Pi then please report this
to projects@drogon.net. If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.


================================================

Now I know this jar requires native library i.e WiringPI ( raspberry pi) & for our systems WiringOP, so I git cloned it, built it, installed it.
But still error. So any way to make Pi4J work here?

0

Threads

1

Posts

8

Credits

Novice

Rank: 1

Credits
8
Post time 2016-12-13 04:13:48 | Show all posts
I have added experimental support for OrangePi in the latest 1.2-SNAPSHOT builds.  
Please be aware that this is largely untested but I was able to get all the build process worked out to include the WiringPi port for OrangePi.  

I'm afraid that the WiringPi port for OrangePi may be slightly outdated and may not support the newer/latest OrangePi hardware models, but we need some testing before we know what is and is not fully supported.
My preliminary testing is on an OrangePi PC running Armbian.

You can follow the status here:
https://github.com/Pi4J/pi4j/issues/230

Thanks, Robert

1

Threads

2

Posts

13

Credits

Novice

Rank: 1

Credits
13
 Author| Post time 2017-1-29 02:04:40 | Show all posts
savageautomate replied at 2016-12-13 04:13
I have added experimental support for OrangePi in the latest 1.2-SNAPSHOT builds.  
Please be aware  ...

Thx Man,v1.2 build works with Orange PI PC.
I am using OpenJDK 8 with latest Armbian Ubuntu Xenial Build

Didnt tested all pins, just tested simple GPIO pins all working fine.
( Tested with 4x4 keyboard matrix buttons )

For All Java Buddies:
Just need to add
GpioFactory.setDefaultProvider(new OrangePiGpioProvider());
Before Getting instance
gpio = GpioFactory.getInstance();


You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2017-9-20 13:31 GMT+8 , Processed in 0.029393 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list