 #include "Cube.h"
 
 Cube cube;
+
+byte action = 0; // Track which user defined function to run
+rgb_t theColour; // Track the colour to use with user defined function
 
 #include "Adafruit_BLE.h"
 #include "Adafruit_BluefruitLE_UART.h"

void loop(void)
{
  readPacket(&ble, BLE_READPACKET_TIMEOUT);
}


  // -1: Don't attach any serial port to interact with the Cube.
  cube.begin(0, 115200); // Start on serial port 0 (USB) at 115200 baud
  
  // Tell the cube library that the function 'userFunctionHandler' should be
  // called if the user uses the 'user ### colour;' serial command line
  // instruction
  setDelegate(userFunctionHandler);

  pinMode(BLUEFRUIT_UART_MODE_PIN, OUTPUT);
//  while (!Serial);  // required for Flora & Micro
//  delay(500);
