USART usart0 = cpu.getIOUnit(USART.class, "USART0");
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);