TFT_ShieldDetect() function
Check the availability of adafruit 1.8" TFT shield on top of STM32NUCLEO board. This is done by reading the state of PC.01 pin when using the ADC1 peripheral or IO PF.03 pin when using ADC3 peripheral (mapped to JoyStick available on adafruit 1.8" TFT shield). If the state of PC.01 or PF.03 is high then the adafruit 1.8" TFT shield is available.
Return value
SHIELD_DETECTED: 1.8" TFT shield is available SHIELD_NOT_DETECTED: 1.8" TFT shield is not available