Package se.sics.mspsim.chip

Examples of se.sics.mspsim.chip.Leds


    }

    @Override
    public void setupNodePorts() {
        super.setupNodePorts();
        leds = new Leds(cpu, LEDS);
        if (getFlash() == null) {
            setFlash(new M25P80(cpu));
        }
        if (flashFile != null) {
            getFlash().setStorage(new FileStorage(flashFile));
View Full Code Here


            ((USARTSource) usart0).addUSARTListener(this);
        } else {
            throw new EmulationException("Could not setup wismote mote - missing USCI B0");
        }
        leds = new Leds(cpu, LEDS);
        button = new Button("Button", cpu, port1, BUTTON_PIN, true);

        IOUnit usart = cpu.getIOUnit("USCI A1");
        if (usart instanceof USARTSource) {
            registry.registerComponent("serialio", usart);
View Full Code Here

  }

  public void setupNodePorts() {
    super.setupNodePorts();

    leds = new Leds(cpu, LEDS);
    button = new Button("Button", cpu, port2, BUTTON_PIN, true);
    sht11 = new SHT11(cpu);
    sht11.setDataPort(port1, SHT11_DATA_PIN);
  }
View Full Code Here

        Color old = g.getColor();

        super.paintComponent(g);

        // Display all active LEDs
        Leds leds = node.getLeds();
        int l = leds.getLeds();
        if ((l & 1) != 0) {
            g.setColor(RED_TRANS);
            g.fillOval(RED1_X - 2, LED_Y - 1, LED_HEIGHT, LED_WIDTH);
            g.setColor(RED_C);
            g.fillOval(RED1_X, LED_Y, LED_HEIGHT - 5, LED_WIDTH - 2);
View Full Code Here

    }

    @Override
    public void setupNodePorts() {
        super.setupNodePorts();
        leds = new Leds(cpu, LEDS);
        accelerometer = new MMA7260QT(cpu);
        ADC12 adc = cpu.getIOUnit(ADC12.class, "ADC12");
        adc.setADCInput(4, new ADCInput() {
            public int nextData() {
                return accelerometer.getADCX();
View Full Code Here

            radio.setSFDPort(port4, CC2420_SFD);
        } else {
            throw new EmulationException("Could not setup mote - missing USCI B0");
        }

        leds = new Leds(cpu, LEDS);
        button = new Button("Button", cpu, port2, BUTTON_PIN, true);

        IOUnit usart = cpu.getIOUnit("USCI A0");
        if (usart instanceof USARTSource) {
            registry.registerComponent("serialio", usart);
View Full Code Here

    if (usart0 == null) {
        throw new EmulationException("Could not setup mote - missing USART0");
    }
    radio = new TR1001(cpu, usart0);

    leds = new Leds(cpu, LEDS);
    button = new Button("Button", cpu, port2, BUTTON_PIN, true);
    beeper = new Beeper(cpu);

    USART usart = cpu.getIOUnit(USART.class, "USART1");
    if (usart != null) {
View Full Code Here

TOP

Related Classes of se.sics.mspsim.chip.Leds

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.