Package processing.serial

Examples of processing.serial.Serial


   * but other firmwares may override it)
   */
  public Arduino(PApplet parent, String iname, int irate) {
    this.parent = parent;
    this.serialProxy = new SerialProxy();
    this.serial = new Serial(serialProxy, iname, irate);

    try {
      Thread.sleep(3000);
    } catch (InterruptedException e) {}
   
View Full Code Here


    // I know that the first port in the serial list on my mac
    // is always my  FTDI adaptor, so I open Serial.list()[0].
    // On Windows machines, this generally opens COM1.
    // Open whatever port is the one you're using.
    String portName = Serial.list()[3];
    myPort = new Serial(this, portName, 9600);
  }
View Full Code Here

  private ArrayList<SerializationSerialReader> readers = new ArrayList<SerializationSerialReader>();
  private Serial serial;
 
  public SerializationSerialConnection(PApplet applet, String port, int speed) {
    serial = new Serial(applet, port, speed);
    setDaemon(true);
    start();
  }
View Full Code Here

  public void startSerial(String portName) {
    if (port != null) {
      port.clear();
      port.stop();
    }
    port = new Serial(this, portName, 57600);   
  }
View Full Code Here

   * but other firmwares may override it)
   */
  public Arduino(PApplet parent, String iname, int irate) {
    this.parent = parent;
    this.serialProxy = new SerialProxy();
    this.serial = new Serial(serialProxy, iname, irate);

    try {
      Thread.sleep(3000);
    } catch (InterruptedException e) {}
   
View Full Code Here

TOP

Related Classes of processing.serial.Serial

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.