Java 类edu.wpi.first.wpilibj.SerialPort.Port 实例源码

项目:FRC2016    文件:ArduPilotAthenaInputStream.java   
public ArduPilotAthenaInputStream() {
    try {
        sp = new SerialPort(115200, Port.kUSB);
    } catch (Exception e) {
        ;
    }
}
项目:CMonster2015    文件:LEDController.java   
/**
 * Creates a new {@link LEDController} on the specified port.
 * 
 * @param port the serial port
 */
public LEDController(Port port) {
    serial = new SerialPort(115200, port);
}