private static final Color BLUE = new Color(0, 0, 255);
private static final Color GREEN = new Color(0, 255, 0);
private static final Color RED = new Color(255, 0, 0);
public MicaZLED(Mote mote) {
MicaZ micaZ = ((MicaZMote) mote).getMicaZ();
avrora.sim.platform.LED.LEDGroup leds =
(avrora.sim.platform.LED.LEDGroup) micaZ.getDevice("leds");
leds.leds[0].getFSM().insertProbe(new FiniteStateMachine.Probe() {
public void fireAfterTransition(int old, int newstate) {
redOn = newstate > 0;
setChanged();