Flash Algroitm for TFT hardware