Please use the ADS783 driver due to full compatibility with the XPT2046.