OPTION LCDPANEL ILI9163, orientation, D/C pin, reset pin [,CS pin]
OPTION LCDPANEL DISABLE
Configures the MMBasic to work with an attached LCD panel using the ILI9163 controller.
‘orientation’ can be LANDSCAPE, PORTRAIT, RLANDSCAPE or RPORTRAIT. These can be abbreviated to L, P, RL or RP. The R prefix indicates the reverse or “upside down” orientation.
‘C/D pin’ and ‘reset pin’ are the I/O pins to be used for these functions. Any free pin can be used. ‘CS pin’ can also be any I/O pin but is optional. If a touch controller is not used this parameter can be left off the command and the CS pin on the LCD display wired permanently to ground. If the touch controller is used this pin must then be specified and connected to an I/O pin.
NOTE: The CPU speed must be 20MHz or greater.
OPTION LCDPANEL DISABLE must be used before any changes are made with a new OPTION LCDPANEL command, such as changing orientation.
See also:
BOX
CIRCLE
CLS
COLOR
DEFINEFONT
FONT
GUI BITMAP
GUI TEST LCDPANEL
LINE
MM.FONTHEIGHT
MM.FONTWIDTH
MM.HRES
MM.VRES
OPTION LCDPANEL
OPTION LIST
PIXEL
RBOX
TEXT
Applies to:
CGMICROBOARD
CGMICROMITE
Leave a Reply