Glcd drawTriangle()

Draws the outline of a triangle between the three points provided, in the colour chosen.

#include "GLCD_ST7565.h"
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(

GLCD_ST7565 glcd;
glcd.drawTriangle(byte x1, byte y1, byte x2, byte y2, byte x3, byte y3, byte colour)

Parameters

x1,y1

The x coordinate (0-127) and y coordinate (0-63) of the first corner.

x2,y2

The x coordinate (0-127) and y coordinate (0-63) of the second corner.

x3,y3

The x coordinate (0-127) and y coordinate (0-63) of the third corner.

colour

0 or 1, BLACK or WHITE. The colour you wish to set the pixels.