 
   delay(1000);
 
-  while (!Serial);
+  while (!Serial && (millis() < 5000));
 
   Serial.println("Initializing display...");
 


void externalFontTestGT30L24T3Y()
{
  uint32_t starttime = millis();

  tft.initExternalFontRom(0, rom);
  
  tft.selectExternalFont(RA8876_FONT_FAMILY_FIXED, RA8876_FONT_SIZE_16, RA8876_FONT_ENCODING_ASCII);

  tft.selectExternalFont(RA8876_FONT_FAMILY_ARIAL, RA8876_FONT_SIZE_24, RA8876_FONT_ENCODING_ASCII);
  tft.println("Arial 24.");
  showFont();
}

void externalFontTestGT30L32S4W()
{
  tft.println("Test for GT30L32S4W (aka ER3304-1)\n");

  int y = tft.getCursorY();
  
  tft.initExternalFontRom(0, rom);
  
  // --- Fixed
  
  tft.selectExternalFont(RA8876_FONT_FAMILY_FIXED, RA8876_FONT_SIZE_16, RA8876_FONT_ENCODING_ASCII);
  tft.println("Fixed 8x16.");
  showFont();

  tft.selectExternalFont(RA8876_FONT_FAMILY_FIXED, RA8876_FONT_SIZE_24, RA8876_FONT_ENCODING_ASCII);
  tft.println("Fixed 12x24.");
  showFont();

  tft.selectExternalFont(RA8876_FONT_FAMILY_FIXED, RA8876_FONT_SIZE_32, RA8876_FONT_ENCODING_ASCII);
  tft.println("Fixed 16x32.");
  showFont();

  delay(2000);
  tft.fillRect(0, y, tft.getWidth(), tft.getHeight(), 0);
  tft.setCursor(0, y);

  // --- Arial

  tft.selectExternalFont(RA8876_FONT_FAMILY_ARIAL, RA8876_FONT_SIZE_16, RA8876_FONT_ENCODING_ASCII);
  tft.println("Arial 16.");
  showFont();
  
  tft.selectExternalFont(RA8876_FONT_FAMILY_ARIAL, RA8876_FONT_SIZE_24, RA8876_FONT_ENCODING_ASCII);
  tft.println("Arial 24.");
  showFont();

  tft.selectExternalFont(RA8876_FONT_FAMILY_ARIAL, RA8876_FONT_SIZE_32, RA8876_FONT_ENCODING_ASCII);
  tft.println("Arial 32.");
  showFont();

  delay(2000);
  tft.fillRect(0, y, tft.getWidth(), tft.getHeight(), 0);
  tft.setCursor(0, y);

  // --- Times

  tft.selectExternalFont(RA8876_FONT_FAMILY_TIMES, RA8876_FONT_SIZE_16, RA8876_FONT_ENCODING_ASCII);
  tft.println("Times 16.");
  showFont();
  
  tft.selectExternalFont(RA8876_FONT_FAMILY_TIMES, RA8876_FONT_SIZE_24, RA8876_FONT_ENCODING_ASCII);
  tft.println("Times 24.");
  showFont();

  tft.selectExternalFont(RA8876_FONT_FAMILY_TIMES, RA8876_FONT_SIZE_32, RA8876_FONT_ENCODING_ASCII);
  tft.println("Times 32.");
  showFont();
}

void showFont()
