Mikroelektronika MIKROE-442 데이터 시트
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
335
S1D13700_Rectangle_Round_Edges_Fill
S1D13700_Circle
Prototype
sub procedure S1D13700_Rectangle_Round_Edges_Fill(dim x_upper_left as word,
dim y_upper_left as word, dim x_bottom_right as word, dim y_bottom_right as
word, dim round_radius as word, dim color as byte)
Returns
Nothing.
Description Draws a filled rounded edge rectangle on Glcd.
Parameters:
-
x_upper_left
: x coordinate of the upper left rectangle corner.
-
y_upper_left
: y coordinate of the upper left rectangle corner.
-
x_bottom_right
: x coordinate of the lower right rectangle corner.
-
y_bottom_right
: y coordinate of the lower right rectangle corner.
-
round_radius
: radius of the rounded edge.
-
pcolor
: color parameter. Valid values:
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
S1D13700_Rectangle_Round_Edges_Fill(20, 20, 219, 107, 12, S1D13700_WHITE)
Prototype
sub procedure S1D13700_Circle(dim x_center as word, dim y_center as word,
dim radius as word, dim color as byte)
Returns
Nothing.
Description Draws a circle on Glcd.
Parameters:
-
x_center
: x coordinate of the circle center.
-
y_center
: y coordinate of the circle center.
-
radius
: radius size.
-
color
: color parameter. Valid values:
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
S1D13700_Circle(120, 64, 110, S1D13700_WHITE)
Value
Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.
Value
Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.