//initialize the TFT LCD on the TPS2L

 

 io.num=55; //RST

 io.enabled=YES;

 io.num=43; //DC

 io.enabled=YES;

 io.num=42; //WR

 io.enabled=YES;

 io.num=41; //RD

 io.enabled=YES;

 io.num=40; //CS

 io.enabled=YES;

 

 lcd.iomapping="55,43,42,41,40,0"; //RST,DC,WR,RD,CS,data_bus

 lcd.rotated=YES; //yes, the LCD is installed upside down

 lcd.width=320;

 lcd.height=240;

 lcd.enabled=YES;

 

 //turn the backlight ON

 io.num=54;

 io.enabled=YES;

 io.state=LOW;