User manual

Table Of Contents
524
mikoC PRO for PIC32
MikroElektronika
SPI_T6963C_sprite
SPI_T6963C_set_cursor
SPI_T6963C_clearBit
Prototype
void SPI_T6963C_sprite(unsigned char px, unsigned char py, const code char
*pic, unsigned char sx, unsigned char sy);
Description Fills graphic rectangle area (px, py) to (px+sx, py+sy) with custom size picture.
Parameters - px: x coordinate of the upper left picture corner. Valid values: multiples of the font width
- py: y coordinate of the upper left picture corner
- pic: picture to be displayed
- sx: picture width. Valid values: multiples of the font width
- sy: picture height
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
SPI_T6963C_sprite(76, 4, einstein, 88, 119); // draw a sprite
Notes If px and sx parameters are not multiples of the font width they will be scaled to the nearest lower
number that is a multiple of the font width.
Prototype
void SPI_T6963C_set_cursor(unsigned char x, unsigned char y);
Description Sets cursor to row x and column y.
Parameters - x: cursor position row number
- y: cursor position column number
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
SPI_T6963C_set_cursor(cposx, cposy);
Notes None.
Prototype
void SPI_T6963C_clearBit(char b);
Description Clears control port bit(s).
Parameters - b: bit mask. The function will clear bit x on control port if bit x in bit mask is set to 1.
Returns Nothing.
Requires Toshiba Glcd module needs to be initialized. See SPI_T6963C_Cong routine.
Example
// clear bits 0 and 1 on control port
SPI_T6963C_clearBit(0x03);
Notes None.