Datasheet

SPI_Glcd_Circle
461
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void SPI_Glcd_Circle(int x_center, int y_center, int radius, char
color);
Returns Nothing.
Description
Draws a circle on Glcd.
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.
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);