B4J Library [IoT] jPi4J - Raspberry Pi GPIO controller

Discussion in 'B4J Libraries & Classes' started by Erel, Feb 5, 2014.

  1. Erel

    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.
     
  2. jayel

    jayel Active Member Licensed User

    I have now used the piface library and this on works :
    Code:
    Dim PFace as PiFace

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

    Erel Administrator Staff Member Licensed User

    Please start a new thread in the questions forum.
     
  4. Gary Miyakawa

    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
     
  5. 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

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

    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.
     
  7. Erel

    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
     
    techknight, jmon and derez like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice