 void displayDriverMode(void)
 {
   #ifdef CC3000_TINY_DRIVER
-    Serial.println(F("CC3000 is configured in 'Tiny' mode"));
+    Serial.println(F("CC3000 is configured for 'Tiny' mode"));
   #else
     Serial.print(F("TX/RX buffer size: "));
     Serial.print(CC3000_TX_BUFFER_SIZE);

  Serial.println(F("\nDeleting old connection profiles"));
  if (!cc3000.deleteProfiles()) { Serial.println(F("unable to delete old connection profiles")); for (;;); }

  /* NOTE: Secure connections are not available in 'Tiny' mode! */
  if (!cc3000.connectToAP(ssid, passphrase, security)) { Serial.print(F("unable to connect to access point ")); for (;;); }   
  Serial.println(F("Connected!"));  

  Serial.println(F("Waiting for IP address"));
  unsigned long timeout = millis() + 20000;

  BSD license, all text above must be included in any redistribution
 ****************************************************/

                                  // These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ    3  // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT   5  // These can be any two pins
#define ADAFRUIT_CC3000_CS    10  //   ..
// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11

#define NVMEM_USER15_FILEID    (15)
#define NVMEM_USER15_FILESIZE  (1 + 32 + 1 + 32 + 1)    // version + SSID + NUL + passphrase + NUL
#define NVMEM_USER15_FILEVRSN  ' '                      // probably will never change, but let's future-proof!


Adafruit_CC3000 *CC3000_setup(char *ssid, char *passphrase, unsigned long security)
{
  unsigned long len;
  char buffer[NVMEM_USER15_FILESIZE + 2];

  Serial.println(F("Initializing the CC3000"));
  Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIV2);

  displayFreeRAM();

  displayDriverMode();
  if (!cc3000.begin()) { Serial.println(F("Unable to initialize the CC3000! Check your wiring?")); for (;;); }

