Glcd drawRect()
Draws the outline of a rectangle in the colour chosen.
#include "GLCD_ST7565.h"
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
GLCD_ST7565 glcd;
glcd.drawRect(byte x, byte y, byte width, byte height, byte colour)
Parameters
x
0-127, the x coordinate of the left edge of the rectangle.
y
0-63, the y coordinate of the top edge of the rectangle.
width
0-127, the width of the rectangle.
height
0-63, the height of the rectangle.
colour
0 or 1, BLACK or WHITE. The colour you wish to set the pixels.