B4J Library [IoT] jPi4J - Raspberry Pi GPIO controller

tmf

Member
Licensed User
Longtime User
I see this is an older thread, but I am wanting to use B4A on Rasp PI or Orange PI or Banana PI or ODROID C1+ I need to pick one that will work with B4A, but I have not a clue, how are these supported? And how to access the I/O??

Richard.
 

Cableguy

Expert
Licensed User
Longtime User
With B4A? or with B4J?
 

Michael1968

Active Member
Licensed User
Longtime User
B4a is notrunning on Raspberry..there is no Android.B4a can run on pcduino,olimex a13 and cubieboard2-cubietruck
 

tmf

Member
Licensed User
Longtime User
B4a is notrunning on Raspberry..there is no Android.B4a can run on pcduino,olimex a13 and cubieboard2-cubietruck

Yes sorry, I was being "vanilla" about what I was saying I am looking at orange pi, banana pi, or nano pi 2 they all have android available... sorry for the confusion.

Richard.
 

derez

Expert
Licensed User
Longtime User
Got my RPI 2 and tried to run something with GPIO using jPi4j library, I get this error:

This is after installing wiringPi from here http://wiringpi.com/
The error ocours at the "controller.Initialize" line. Seems like I haven't installed something.
In another app I got this :
wiringPiSetup: Must be root. (Did you forget sudo?)
Help ?
 
Last edited:

viriato

Member
Licensed User
Longtime User
Hi,
I have working B4J program on Raspberry B version, using the WiringPi and jPi4j.jar library
I made new installation on raspberry 2 with Jessie OS Version and new WiringPi library (nut same jPi4j java library Version 1.0)
Same b4J program as in the past , I can start the program , i can see the pin status on log (but no change ) same on the output no change , I can drive leds , all outputs still static
If I use the GPIO tool on Raspberry 2 , i can read , write on the pins without any issue.

Any help will be appreciated
Thanks a lot
 

rbghongade

Well-Known Member
Licensed User
Longtime User
Pin
Numbers for the Raspberry pi models are different pls check out the same.