Package avrora.sim.radio

Examples of avrora.sim.radio.CC1000Radio$Transmitter


        mcu.getPin("PA0").connect(yellow);
        mcu.getPin("PA1").connect(green);
        mcu.getPin("PA2").connect(red);

        // radio
        radio = new CC1000Radio(mcu, MAIN_HZ * 2);
        addDevice("radio", radio);
        // sensor board
        sensorboard = new SensorBoard(sim);
        // external flash
        externalFlash = new ExternalFlash(mcu);
View Full Code Here


    }

    private void send(X10Event[] events) throws CruiseControlException {
        LOG.info("Sending X10 events...");
        Transmitter transmitter = getTransmitter();
        if (port != null) {
            ((SerialGateway) transmitter).setPortName(port);
        }
        try {
            ((Gateway) transmitter).allocate();
        } catch (Exception e) {
            throw new CruiseControlException("Trouble allocating the x10 gateway.", e);
        }

        for (int j = 0; j < events.length; j++) {
            LOG.debug("Transmitting: " + events[ j ]);
            try {
                transmitter.transmit(events[ j ]);
            } catch (IOException e) {
                throw new CruiseControlException("Trouble transmitting event " + events[ j ], e);
            }
        }
View Full Code Here

TOP

Related Classes of avrora.sim.radio.CC1000Radio$Transmitter

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.