Package com.neophob.sematrix.core.output

Examples of com.neophob.sematrix.core.output.Serial


    if (portName == null) {
      return;
    }
   
    try {
      port = new Serial(portName, this.baud);
      sleep(1500); //give it time to initialize
      if (ping()) {

        //send initial image to rainbowduinos
        for (int i: rainbowduinoAddr) {
View Full Code Here


    if (portName == null) {
      return;
    }
   
    try {
      port = new Serial(portName, this.baud);
      sleep(1500); //give it time to initialize
      if (ping()) {
        return;
      }
     
View Full Code Here

    if (portName == null) {
      return;
    }
   
    try {
      port = new Serial(portName, this.baud);
      sleep(1500); //give it time to initialize
      if (ping()) {
        return;
      }
      LOG.log(Level.WARNING, "No response from port {0}", portName);
View Full Code Here

        LOG.log(Level.INFO, "portName == null");
      return;
    }
   
    try {
      port = new Serial(portName, this.baud);
      sleep(1500); //give it time to initialize
      if (ping()) {
        return;
      }
      LOG.log(Level.WARNING, "No response from port {0}", portName);
View Full Code Here

   * @param portName the port name
   * @throws NoSerialPortFoundException the no serial port found exception
   */
  private void openPort(String portName) throws NoSerialPortFoundException {
    try {
      port = new Serial(portName, this.baud);     
      port.output.write("PXL".getBytes());
    } catch (Exception e) { 
      LOG.log(Level.WARNING, "Failed to open port <"+portName+">", e);
      if (port != null) {
        port.stop();                 
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.output.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.