Library files for using Seeed Studio TFT Touch Shield for Arduino (ST7781R controller) together with ELMICRO TestBed for mbed. Featuring a short example program of how to calibrate the touch screen. Some basic drawing functions are also included (circle, rectangle, lines, text).
Diff: 2d_draw.h
- Revision:
- 0:db0d63650413
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/2d_draw.h Thu Jun 28 10:12:07 2012 +0000 @@ -0,0 +1,13 @@ +#include "font.c" +#include "TFT.h" + +void DrawAscii (unsigned char ascii,unsigned int posX, unsigned int posY,unsigned int size, unsigned int fgcolor); +void DrawString (char *string,unsigned int posX, unsigned int posY,unsigned int size,unsigned int fgcolor); +void FillRectangle (unsigned int posX, unsigned int posY, unsigned int length, unsigned int height, unsigned int color); +void DrawRectangle (unsigned int posX, unsigned int posY, unsigned int length, unsigned int height, unsigned int color); +void DrawHorizontalLine (unsigned int posX, unsigned int posY, unsigned int length, unsigned int color); +void DrawCircle (unsigned int posX, unsigned int posY, unsigned int radius, unsigned int color); +void DrawVerticalLine (unsigned int posX, unsigned int posY, unsigned int length, unsigned int color); +void DrawLine (int xstart, int ystart, int xend ,int yend, int iColor); +void DispPolygon2D (int *pIn, int iCorners, int iColor); +