User manual

496
mikoBasic PRO for PIC32
MikroElektronika
SPI_T6963C_sprite
SPI_T6963C_set_cursor
SPI_T6963C_clearBit
Prototype
sub procedure SPI_T6963C_sprite(dim px, py as byte, dim const pic as ^byte,
dim sx, sy as byte)
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
sub procedure SPI_T6963c_set_cursor(dim x, y as byte)
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
sub procedure SPI_T6963C_clearBit(dim b as byte)
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(0x0003)
Notes None.