   kHeading = 11, // CMDID for data updates from SPAD.neXt
 };
 
+int lastLedState = 999;
+bool isReady = false;
+
 void attachCommandCallbacks()
 {
   // Attach callback methods

{
  // Process incoming serial data, and perform callbacks
  messenger.feedinSerialData();
}

// Called when a received command has no attached function
void onUnknownCommand()
{
  messenger.sendCmd(kDebug,"UNKNOWN COMMAND"); 
}

// Callback function to respond to indentify request. This is part of the
