Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
492
mikoC PRO for PIC32
MikroElektronika
SPI_Glcd_Box
SPI_Glcd_Circle
Prototype
void SPI_Glcd_Box(char x_upper_left, char y_upper_left, char x_bottom_right,
char y_bottom_right, char color);
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 for SPI communication, see SPI_Glcd_Init routine.
Example
// Draw a box between dots (5,15) and (20,40)
SPI_Glcd_Box(5, 15, 20, 40, 1);
Notes
None.
Prototype
void SPI_Glcd_Circle(int x_center, int y_center, int radius, char color);
Description Draws a circle on Glcd.
Parameters -
Parameters -
x_center
: x coordinate of the circle center. Valid values: 0..127
-
y_center
: y coordinate of the circle center. Valid values: 0..63
-
radius
: radius size
-
color
: color parameter. Valid values: 0..2
The parameter
color
determines the color of the circle line: 0 white, 1 black, and 2 inverts each dot.
Returns
Nothing.
Requires
Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Example
// Draw a circle with center in (50,50) and radius=10
SPI_Glcd_Circle(50, 50, 10, 1);
Notes
None.