Working with the TPS2L LCD

The TPP2 G2 board can be supplied as a part of the size 2 Tibbo Project System with LCD/keys (TPS2L, see Programmable Hardware Manual). This device features a 320x240 TFT LCD panel model number LCD-P0005. The panel has a built in Solomon SSD1963 controller.

No display driver selection is necessary — the platform supports only one type of the display. There is also no control line remapping.

Here is the complete initialization code for the LCD. It enables the LCD control lines, sets correct display resolution, and defines the display orientation as "up side down" (yes, this is correct, inside the TPS2L box the LCD is mounted up side down):

** Tibbo Basic **

'backlight
io.num=PL_IO_NUM_54
io.enabled=YES
io.state=LOW

'RST
io.num=PL_IO_NUM_55
io.enabled=YES

'DC
io.num=PL_IO_NUM_43
io.enabled=YES

'WR
io.num=PL_IO_NUM_42
io.enabled=YES

'RD
io.num=PL_IO_NUM_41
io.enabled=YES

'CS
io.num=PL_IO_NUM_40
io.enabled=YES

lcd.width=320
lcd.height=240
lcd.rotated=YES 'yes, the LCD is installed up side down
lcd.enabled=YES