Convert C++ TFT library from SDCard branch to C