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).

Dependencies:   mbed

Committer:
elmicro
Date:
Thu Jun 28 10:12:07 2012 +0000
Revision:
0:db0d63650413

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elmicro 0:db0d63650413 1 #include "font.c"
elmicro 0:db0d63650413 2 #include "TFT.h"
elmicro 0:db0d63650413 3
elmicro 0:db0d63650413 4 void DrawAscii (unsigned char ascii,unsigned int posX, unsigned int posY,unsigned int size, unsigned int fgcolor);
elmicro 0:db0d63650413 5 void DrawString (char *string,unsigned int posX, unsigned int posY,unsigned int size,unsigned int fgcolor);
elmicro 0:db0d63650413 6 void FillRectangle (unsigned int posX, unsigned int posY, unsigned int length, unsigned int height, unsigned int color);
elmicro 0:db0d63650413 7 void DrawRectangle (unsigned int posX, unsigned int posY, unsigned int length, unsigned int height, unsigned int color);
elmicro 0:db0d63650413 8 void DrawHorizontalLine (unsigned int posX, unsigned int posY, unsigned int length, unsigned int color);
elmicro 0:db0d63650413 9 void DrawCircle (unsigned int posX, unsigned int posY, unsigned int radius, unsigned int color);
elmicro 0:db0d63650413 10 void DrawVerticalLine (unsigned int posX, unsigned int posY, unsigned int length, unsigned int color);
elmicro 0:db0d63650413 11 void DrawLine (int xstart, int ystart, int xend ,int yend, int iColor);
elmicro 0:db0d63650413 12 void DispPolygon2D (int *pIn, int iCorners, int iColor);
elmicro 0:db0d63650413 13