TFT library to new format