412
Platforms
©2000-2008 Tibbo Technology Inc.
2. Number of the I/O line connected to RS.
3. Number of the I/O line connected to WR.
4. Number of the I/O line connected to RD.
5. Number of the I/O line connected to CS.
6. Number of the I/O port connected to DB7-0.
I/O line numbers are from the pl_io_num enum. Port number is from the
pl_io_port_num enum. Line and port numbers are platform-specific. See the list of
pl_io_num and pl_io_port_num constants in the platform specifications.
For the TEV-LB0 board, the lcd.iomapping should be set to "44,43,42,41,40,4".
Code example -- TEV-LB2
This code will properly setup and enable this controller/panel (we assume that the
testing is done using the TEV-LB2 board):
lcd.iomapping="44,43,42,41,40,4"
'RESET,RS,WR,RD,CS,DB7-0
io.num=PL_IO_NUM_44
'RESET
io.enabled=YES
io.num=PL_IO_NUM_43
'RS
io.enabled=YES
io.num=PL_IO_NUM_42
'WR
io.enabled=YES
io.num=PL_IO_NUM_41
'RD
io.enabled=YES
io.num=PL_IO_NUM_40
'CS
io.enabled=YES
'set resolution
lcd.width=176
lcd.height=220
'optionally set lcd.rotated here
lcd.enabled=YES
'done!
'turn on the backlight (strictly speaking, this is not related to the LCD
control, but we still show it here)
io.num=PL_IO_NUM_47
io.enabled=YES
io.state=HIGH
8.3.12.3
Properties and Methods
The following classification groups properties and methods of the lcd. object by
their logical function.
LCD panel characteristics:
[R/O Property]
[R/O Property]
[R/O Property]
[R/O Property]
[R/O Property]
424
425
414
427
420