B4J Library [IoT] jPi4J - Raspberry Pi GPIO controller

Erel

Administrator
Staff member
Licensed User
You can try to run a python script that works with PiFace and see whether the hardware is working or not.
 

jayel

Active Member
Licensed User
I have now used the piface library and this on works :
B4X:
Dim PFace as PiFace

PFace.initialize(0x40,0)
Pface.GetSwitch(0).AddListener("Pin1")
Ok, but how can I set debounce with this library.
 

Gary Miyakawa

Active Member
Licensed User
I was having the same issue with the latest Raspian code. I updated my B4J jPi4J from Erel's msg #154. Put them in the right spot and it's working fine now.

Thank you for the fix!

Gary Miyakawa
 
Hi all!
First of all, I love your job Erel...
I receive this error using Pin 7 as input.
(Programming via Netbeans and C++ works well, with B4J no).

Raspberry Pi 3
jPi4J 2.00

B4X:
Private Col4 As GpioPinDigitalInput
Col4.Initialize("Col4",7)
B4X:
java.lang.RuntimeException: Unable to open GPIO direction interface for pin [7]: File o directory non esistente
 

Erel

Administrator
Staff member
Licensed User
Please start a new thread in the questions forum. Make sure to post the full error message from the logs.
 

Erel

Administrator
Staff member
Licensed User
The library was updated with the latest version of Pi4J. It fixes the following error:

Unable to determine hardware version. I see: Hardware : BCM2835
 
Top