Working With the TPB2L LCD

Installing a TPP2 or TPP2(G2) and its attached Tibbits inside a TPB2L creates a Size 2 Tibbo Project System With LCD/Keys (TPS2L). This device features a 320x240 TFT LCD panel (model number LCD-P0005). The panel has a built-in Solomon SSD1963 controller.

Two drivers are available for working with this panel. We recommend using the "fixed" driver "Solomon SSD1963 (fixed I/O-2)." See Solomon SSD1963 (LCD-P0005) for more information.

Here is the complete initialization code for the LCD. It enables the LCD control lines, sets the correct display resolution, and defines the display orientation as "upside down" (yes, this is correct, inside the TPS2L, the LCD is mounted upside down). Note that the lcd.iomapping line is essential even for the "fixed" driver.


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.iomapping="55,43,42,41,40,0"		'RST,DC,WR,RD,CS,data_bus
lcd.width=320
lcd.height=240
lcd.rotated=YES							'Yes, the LCD is installed upside down
lcd.enabled=YES