   matrix.clear();
   matrix.drawPixel(0, 0, LED_RED);
   matrix.writeDisplay();
-//  delay(500);
   
   connect();
 }
 
 void connect() {
-    Serial.println(F("Hello, CC3000!\n")); 
-
+  Serial.println(F("Hello, CC3000!\n"));
   Serial.print("Free RAM: "); Serial.println(getFreeRam(), DEC);
   
   /* Initialise the module */

    return;
  }

  Serial.println(F("-------------------------------------"));
  
  /* Read data until either the connection is closed, or the idle timeout is reached. */ 
  unsigned long lastRead = millis();
  while (www.connected() && (millis() - lastRead < IDLE_TIMEOUT_MS)) {
    while (www.available()) {
      char c = www.read();
      Serial.print(c);
      lastRead = millis();
    }
  }
  www.close();
  Serial.println(F("-------------------------------------"));
}

void loop()
{
  findNextPicture();
  
  matrix.clear(); 
  
  int row = 0;
  int col = 0;
  char pic[] = "grgyrygrygygryrgyrgyrgyrgyyrgygyrgyrygyryrygyrygyrygyrgyrgyrgyry";
  char pic1[] = "0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy0rgy";
  char pic2[] = "0rgyygr00rgyygr00rgyygr00rgyygr00rgyygr00rgyygr00rgyygr00rgyygr0";
  char smile[] = "00gggg000g0000g0g0g00g0gg000000gg0g00g0gg00gg00g0g0000g000gggg00";  

  char *current;
  switch (random(4)) {
    case 0:
      current = pic;
      break;
    case 1:
      current = pic1;
      break;
    case 2:
      current = pic2;
      break;
    case 3:
      current = smile;
      break;
  }

  for (int i = 0; i < 64; i++) {
     if (current[i] == 'r') {
       matrix.drawPixel(col, row, LED_RED);
     }
     if (current[i] == 'g') {
       matrix.drawPixel(col, row, LED_GREEN);
     }
     if (current[i] == 'y') {
       matrix.drawPixel(col, row, LED_YELLOW);
     }
     

     }
  }
  matrix.writeDisplay();
}

void listSSIDResults(void)
