Datasheet

SPI_T6963C_Write_Text
490
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void SPI_T6963C_Write_Text(unsigned char *str, unsigned char x,
unsigned char y, unsigned char mode);
Returns Nothing.
Description
Writes text in the current text panel of Glcd at coordinates (x, y).
Parameters :
-
str: text to be written
- x: text position on x-axis
- y: text position on y-axis
- mode: mode parameter. Valid values: SPI_T6963C_ROM_MODE_OR,
SPI_T6963C_ROM_MODE_XOR, SPI_T6963C_ROM_MODE_AND
and SPI_T6963C_ROM_MODE_TEXT
Mode parameter explanation:
- OR Mode: In the OR-Mode, text and graphics can be displayed and
the data is logically “OR-ed”. This is the most common way of combin-
ing text and graphics for example labels on buttons.
- XOR-Mode: In this mode, the text and graphics data are combined via
the logical “exclusive OR”. This can be useful to display text in nega-
tive mode, i.e. white text on black background.
- AND-Mode: The text and graphic data shown on the display are com-
bined via the logical “AND function”.
- TEXT-Mode: This option is only available when displaying just a text.
The Text Attribute values are stored in the graphic area of display memory.
For more details see the T6963C datasheet.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_Write_Text("Glcd LIBRARY DEMO, WELCOME !", 0, 0,
T6963C_ROM_MODE_EXOR);