Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Glcd_Rectangle
Glcd_Box
242
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Glcd_Rectangle(x_upper_left: byte; y_upper_left: byte;
x_bottom_right: byte; y_bottom_right: byte; color: byte);
Returns
Nothing.
Description
Draws a rectangle on Glcd.
Parameters : 
x_upper_left
: x coordinate of the upper left rectangle corner. Valid values: 0..127
y_upper_left
: y coordinate of the upper left rectangle corner. Valid values: 0..63 
x_bottom_right
: x coordinate of the lower right rectangle corner. Valid values: 
0..127 
y_bottom_right
: y coordinate of the lower right rectangle corner. Valid values: 
0..63 
color
: color parameter. Valid values: 0..2 
The parameter color determines the color of the rectangle border: 0 white, 1
black, and 2 inverts each dot.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
' Draw a rectangle between dots (5,5) and (40,40)
Glcd_Rectangle(5, 5, 40, 40, 1);
Prototype
procedure Glcd_Box(x_upper_left: byte; y_upper_left: byte; x_bot-
tom_right: byte; y_bottom_right: byte; color: byte);
Returns
Nothing.
Description
Draws a box on Glcd.
Parameters : 
x_upper_left
: x coordinate of the upper left box corner. Valid values: 0..127 
y_upper_left
: y coordinate of the upper left box corner. Valid values: 0..63 
x_bottom_right
: x coordinate of the lower right box corner. Valid values:
0..127 
y_bottom_right
: y coordinate of the lower right box corner. Valid values:
0..63 
color
: color parameter. Valid values: 0..2 
The parameter color determines the color of the box fill: 0 white, 1 black, and 2
inverts each dot.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
' Draw a box between dots (5,15) and (20,40)
Glcd_Box(5, 15, 20, 40, 1);