36 #define absDiff(x,y) ((x>y) ? (x-y) : (y-x))
48 void TFT_HorizontalLine(
unsigned int Xaxis,
unsigned int Yaxis,
unsigned int width ,
unsigned int color);
49 void TFT_VerticalLine(
unsigned int Xaxis,
unsigned int Yaxis,
unsigned int height ,
unsigned int color);
50 void TFT_Line(
unsigned int x1,
unsigned int y1,
unsigned int x2,
unsigned int y2,
unsigned int color);
51 void TFT_SlantyLine(
unsigned int lX1,
unsigned int lY1,
unsigned int lX2,
unsigned int lY2,
unsigned int color);
54 void TFT_FullRectangle(
unsigned int Xaxis1,
unsigned int Yaxis1,
unsigned int Xaxis2 ,
unsigned int Yaxis2,
unsigned int color);
55 void TFT_EmptyRectangle(
unsigned int Xaxis1,
unsigned int Yaxis1,
unsigned int Xaxis2,
unsigned int Yaxis2,
unsigned int color);
56 void TFT_RoundRectangle(
unsigned int x,
unsigned int y,
unsigned int width,
unsigned int height,
unsigned int radius,
unsigned int color);
58 void TFT_Circle(
unsigned int CenterX,
unsigned int CenterY,
unsigned int Radius,
unsigned int color);
59 void TFT_DrawCircle(
unsigned int CenterX,
unsigned int CenterY,
unsigned int Radius,
unsigned int color);
60 void TFT_Disk(
unsigned int CenterX,
unsigned int CenterY,
unsigned int Radius,
unsigned int color);
61 void TFT_Ellipse(
long CX,
long CY,
long XRadius,
long YRadius,
unsigned int color);
64 void TFT_RightTriangle (
int topx,
int topy,
int rightx,
int righty,
unsigned int color);
double TFT_dfloor(double value)
Helper funrtion for truncating the double values.
void TFT_EmptyRectangle(unsigned int Xaxis1, unsigned int Yaxis1, unsigned int Xaxis2, unsigned int Yaxis2, unsigned int color)
This function paints an empty rectangle on the screen. The width of the contour is 1 pixel...
void TFT_DrawCircle(unsigned int CenterX, unsigned int CenterY, unsigned int Radius, unsigned int color)
This function draws a circle centered a x,y with radius R and specific color.
void TFT_VerticalLine(unsigned int Xaxis, unsigned int Yaxis, unsigned int height, unsigned int color)
Draw a vertical line on the display.
void TFT_SlantyLine(unsigned int lX1, unsigned int lY1, unsigned int lX2, unsigned int lY2, unsigned int color)
Plot a slanty line from x1,y1 to x2,y2 on the display.
void TFT_Disk(unsigned int CenterX, unsigned int CenterY, unsigned int Radius, unsigned int color)
This function plots a full disk on the display.
void TFT_RightTriangle(int topx, int topy, int rightx, int righty, unsigned int color)
This function paints a right angled triangle.
void Plot4EllipsePoints(long CX, long CY, long X, long Y, unsigned int color)
Helper function for plotting an ellipse.
void TFT_Ellipse(long CX, long CY, long XRadius, long YRadius, unsigned int color)
This function paints a.
void TFT_FullRectangle(unsigned int Xaxis1, unsigned int Yaxis1, unsigned int Xaxis2, unsigned int Yaxis2, unsigned int color)
This function paints a filled rectangle on the screen.
void TFT_HorizontalLine(unsigned int Xaxis, unsigned int Yaxis, unsigned int width, unsigned int color)
Draw a horizontal line on the display.
void TFT_RoundRectangle(unsigned int x, unsigned int y, unsigned int width, unsigned int height, unsigned int radius, unsigned int color)
This function draws a rectangle with round corners.
void TFT_Line(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int color)
This function paints a.
void TFT_Circle(unsigned int CenterX, unsigned int CenterY, unsigned int Radius, unsigned int color)
This function draws a circle centered a x,y with radius R and specific color.