1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

USB GPIO JAVA DIGITAL COMMANDS

Discussion in 'GPIO Modules' started by Mohamad Ayoub, Mar 15, 2018.

  1. Mohamad Ayoub

    Mohamad Ayoub New Member

    Joined:
    Mar 15, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    Dubai
    I have just recieved my USB GPIO 64 channels. installed the driver, connected to java by this code:

    SerialPort port = new SerialPort("COM6");
    try {
    /*Try to open port*/
    if(port.openPort() == true){
    System.out.println("Port opened successfully...");
    }
    else{
    System.exit(0);

    }

    this works OK. but now I need to send a digital signal to a specific pin out of 64 pins, like HIGH or LOW , PULLUP or PULLDOWN.
    How to write that in Java Netbeans ?
     

Share This Page