Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_Glcd_V_Line
SPI_Glcd_H_Line
407
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_Glcd_V_Line(y_start: byte; y_end: byte; x_pos:
byte; color: byte);
Returns
Nothing.
Description
Draws a vertical line on Glcd.
Parameters : 
y_start
: y coordinate of the line start. Valid values: 0..63 
y_end
: y coordinate of the line end. Valid values: 0..63 
x_pos
: x coordinate of vertical line. Valid values: 0..127 
color
: color parameter. Valid values: 0..2 
Parameter color determines the line color: 0 white, 1 black, and 2 inverts each dot.
Requires
Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routines.
Example
// Draw a vertical line between dots (10,5) and (10,25)
SPI_Glcd_V_Line(5, 25, 10, 1);
Prototype
procedure SPI_Glcd_V_Line(x_start : byte; x_end : byte; y_pos :
yte; color : byte);
Returns
Nothing.
Description
Draws a horizontal line on Glcd.
Parameters : 
x_start
: x coordinate of the line start. Valid values: 0..127 
x_end
: x coordinate of the line end. Valid values: 0..127 
y_pos
: y coordinate of horizontal line. Valid values: 0..63 
color
: color parameter. Valid values: 0..2 
The parameter color determines the line color: 0 white, 1 black, and 2 inverts
each dot.
Requires
Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routines.
Example
// Draw a horizontal line between dots (10,20) and (50,20)
SPI_Glcd_H_Line(10, 50, 20, 1);