       else if( newColorInst.red > 0 ) setColor(I_RED);
       else if( newColorInst.green > 0 ) setColor(I_GRN);
       else if( newColorInst.blue > 0 ) setColor(I_BLU);
-//      else setOff();
-//      else setColor(4); // default to on, but rotating colors.
-//      else setFade(); // default to on, but rotating colors.
+      //      else setOff();
+      //      else setColor(4); // default to on, but rotating colors.
+      //      else setFade(); // default to on, but rotating colors.
       else setSmooth(); // default to on, but rotating colors.
-      
+
       lastColorInst = newColorInst;
-    }    
-  } 
+    }
+  }
 
 }
 

  // 50W floods: any damn thing
  // strips: 0x00F?
  // 10W floods: 0x??F7
  
  Serial << "On." << endl;
  setOn();
  setOn();
  setOn();
  
  Serial << F("Free RAM: ") << freeRam() << endl;
}


#include <Metro.h>
#include <Simon_Common.h> // I_RED, etc.
#include <EasyTransfer.h> // rx, tx
#include <SoftwareSerial.h> //

SoftwareSerial SSerial(A2, A3); // to A2 and A3 on Tower Moteino, swapping the cabling
EasyTransfer ET;
colorInstruction lastColorInst, newColorInst;

typedef class IRLIGHT {
  public:
    void begin( uint16_t address, byte sendCount,
                byte on, byte off, byte up, byte down,
                byte red, byte green, byte blue, byte yellow, byte white,
                byte flash, byte strobe, byte fade, byte smooth );

    void on(), off(), up(), down();
    void flash(), strobe(), fade(), smooth();
    void color(byte color);

  private:
    void send(byte code);
    unsigned long generateCode(byte code);

    boolean isOn;

    uint16_t addressC;
    byte onC, offC, upC, downC, redC, greenC, blueC, yellowC, whiteC, flashC, strobeC, fadeC, smoothC;
    byte sendCount;
    byte currentColor;

} IRlight;

IRsend irsend;
IRlight flood; // Loftek (50W) and off-brand (10W) floods, and RGB strip lighting.

// about 70 ms to send packet

