 
 //Error pin to flash on error
 int ERROR_PIN = 13;
+int LIGHT_PIN = 7;
 /**
  * Enumeration of commands
  * Value set to control code of command

/**
 * Send a command packet recieves responce
 * packet - command packet to send
 */
CommandPacket* sendCommand(CommandPacket* packet)
{
  sendBytes((uint8_t*)packet,packet->len);
  return readCommand();
}
/**
 * Sends bytes.  All is little endian so no conversion necessary.

void sendBytes(uint8_t* bytes,long len) 
{
  fillChecksum(bytes,len);
  int i = 0;
  /*Serial.print("< ");
  for (i = 0; i < len; i++) {
    Serial.print(bytes[i],HEX);
    Serial.print(" ");
  }
  Serial.println();*/
  if (Serial.write(bytes,len) != len)
    error(10);
}
