Mikroelektronika MIKROE-350 Fiche De Données
SPI_Glcd_Rectangle
397
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_Glcd_Rectangle(dim x_upper_left as byte, dim
y_upper_left
y_upper_left
as byte, dim x_bottom_right as byte, dim
y_bottom_right
as byte, dim color as 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 for SPI communication, see SPI_Glcd_Init routines.
Example
' Draw a rectangle between dots (5,5) and (40,40)
SPI_Glcd_Rectangle(5, 5, 40, 40, 1)