   int nPinYm = -1;
 
   int i, j, value, Apins[2], Dpins[2], Values[2], found = 0;
+  int nMcuFriendId = -1;
+
+  #if defined(DRV_DISP_ADAGFX_MCUFRIEND)
+    // For MCUFRIEND displays, detect the ID
+    nMcuFriendId = m_disp.readID();
+  #endif // DRV_DISP_ADAGFX_MCUFRIEND
 
   GSLC_DEBUG_PRINT("Making all control and bus pins INPUT_PULLUP\n", "");
   GSLC_DEBUG_PRINT("Typical 30k Analog pullup with corresponding pin\n", "");


  // Status
  gslc_DrvDrawTxt(&m_gui, m_rStatus.x, m_rStatus.y, m_pFont, "Detecing Pins", GSLC_TXT_DEFAULT, GSLC_COL_YELLOW, GSLC_COL_BLACK);
}

bool DetectPins()


char m_acTxt[MAX_STR];
gslc_tsRect m_rStatus = (gslc_tsRect) { 40, 60, 50, 10 };
gslc_tsRect m_rReport = (gslc_tsRect) { 40, 80, 140, 10 };
gslc_tsFont* m_pFont = NULL;

#define MAX_FONT                1
