Mikroelektronika MIKROE-724 データシート

ページ / 726
358
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Glcd_Rectangle_Round_Edges_Fill
Glcd_Box
Prototype
sub procedure Glcd_Rectangle_Round_Edges_Fill(dim x_upper_left as byte, dim 
y_upper_left  as  byte,  dim  x_bottom_right  as  byte,  dim  y_bottom_right  as 
byte, dim radius as byte, dim color as byte)
Description Draws a filled rounded edge rectangle on Glcd with color.
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 
round_radius
: radius of the rounded edge 
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.
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
‘ Draws a filled rounded edge rectangle between dots (5,5) and (40,40) with 
the radius of 12
Glcd_Rectangle_Round_Edges_Fill(5, 5, 40, 40, 12, 1)
Notes
None.
Prototype
sub procedure Glcd_Box(dim x_upper_left, y_upper_left, x_bottom_right, y_
bottom_right, color as byte)
Description Draws a box on Glcd.
Parameters: 
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.
Returns
Nothing.
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)
Notes
None.