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).
2d_draw.h
- Committer:
- elmicro
- Date:
- 2012-06-28
- Revision:
- 0:db0d63650413
File content as of revision 0:db0d63650413:
#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);