Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I need alittle help with JD2XX Coding

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need alittle help with JD2XX Coding

    import java.io.IOException;

    import jd2xx.JD2XX;


    public class Main {
    public static void main(String[] args) throws IOException {

    System.out.println("Made By Roman");

    // Create a JD2XX object
    JD2XX usb4Relay = new JD2XX();

    usb4Relay.open(0);

    usb4Relay.close();
    }

    }

    This code works perfectly for me and turning on the relay( and the light)
    but I got 4 controler on my relay and this code turn on all of tham ,
    how to select which one to turn on?
    and how to turn off the light .
    thanks in advance!!!


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: I need alittle help with JD2XX Coding

    You need to post the source code for the classes that are not part of the Java SE if you want help with them.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Please i need help in a simple coding
    By ookhai in forum Object Oriented Programming
    Replies: 13
    Last Post: July 6th, 2012, 10:19 AM
  2. Need Help With Coding
    By noles227 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 22nd, 2012, 07:35 PM
  3. Replies: 2
    Last Post: February 19th, 2012, 07:36 AM
  4. Need your help to coding
    By Tony_nguyen19 in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: November 14th, 2011, 08:58 AM
  5. J2me coding
    By sjaf in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: September 13th, 2011, 02:47 AM