Package org.tc65sh.device

Examples of org.tc65sh.device.Device


    private boolean tryPort(UserInterface ui, String portname) {

        boolean found = false;
        try {
            Device device = new Device();
            Log.info("connecting " + portname + " with " + baudrate + " baud, flowControl " + flowControl);
            device.connect(portname, baudrate, flowControl);
            if (sysstartWaitSec > 0) {
                Log.info("waiting " + sysstartWaitSec + " sec for SYSSTART");
                device.waitForSysstart(sysstartWaitSec * 1000);
            }
            if (device.checkForTC65()) {
                found = true;
                open(ui, device);
            } else {
                Log.info("No TC65 found on port " + portname);
                device.disconnect();
            }
        } catch (Exception e) {
            Log.info("Could not open port " + portname);
            Log.debug(this.getClass(), "tryPort:" + e);
        }
View Full Code Here

TOP

Related Classes of org.tc65sh.device.Device

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.