Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_T6963C_Line
SPI_T6963C_Rectangle
437
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_T6963C_Line(x0 : integer; y0 : integer; x1 : inte-
ger; y1 : integer; pcolor : byte);
Returns
Nothing.
Description
Draws a line from (x0, y0) to (x1, y1).
Parameters : 
x0
: x coordinate of the line start 
y0
: y coordinate of the line end 
x1
: x coordinate of the line start 
y1
: y coordinate of the line end 
pcolor
: color parameter. Valid values: SPI_T6963C_BLACK and 
SPI_T6963C_WHITE 
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_Line(0, 0, 239, 127, T6963C_WHITE);
Prototype
procedure SPI_T6963C_Rectangle(x0 : integer; y0 : integer; x1 :
integer; y1 : integer; pcolor : byte);
Returns
Nothing.
Description
Draws a rectangle on Glcd.
Parameters : 
x0
: x coordinate of the upper left rectangle corner 
y0
: y coordinate of the upper left rectangle corner 
x1
: x coordinate of the lower right rectangle corner 
y1
: y coordinate of the lower right rectangle corner 
pcolor
: color parameter. Valid values: SPI_T6963C_BLACK and 
SPI_T6963C_WHITE 
Requires
Toshiba Glcd module needs to be initialized. See SPI_T6963C_Config routine.
Example
SPI_T6963C_Rectangle(20, 20, 219, 107, T6963C_WHITE);