private static final Color DARK_YELLOW = new Color(184,134,11);
public Exp5438LED(Mote mote) {
mspMote = (Exp5438Mote) mote;
IOUnit unit = mspMote.getCPU().getIOUnit("P1");
if (unit instanceof IOPort) {
((IOPort) unit).addPortListener(new PortListener() {
public void portWrite(IOPort source, int data) {
redOn = (data & Exp5438Node.LEDS_CONF_RED) != 0;
yellowOn = (data & Exp5438Node.LEDS_CONF_YELLOW) != 0;