Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
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 -
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_Config 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 -
Parameters -
x
: cursor position row number
-
y
: cursor position column number
Returns
Nothing.
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_set_cursor(cposx, cposy);
Notes
None.
Prototype
void SPI_T6963C_clearBit(char b);
Description Clears control port bit(s).
Parameters -
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_Config routine.
Example
// clear bits 0 and 1 on control port
SPI_T6963C_clearBit(0x03);
Notes
None.