Hi Graham,
Yes it is the sainsmart shield with the variable resistor and on top of that I bought 2 of them
here is my test code which compiles and runs on UNO with a different screen . I use arduino IDE 1.0.6
on mac .
on Mega I still do not see the rectangles ( only a black or white screen depending on the backlight voltage). I guess i tried all possible controllers !
Any idea ?
Regards,
Gilles
//=================================
// TFT 7
//=================================
#include <UTFT.h>
//UTFT TFTS(ITDB24,A5,A4,A3,A2); // for UNO
UTFT TFTS(ITDB32S,38,39,40,41); // for Mega
//UTFT TFTS(ITDB24,38,39,40,41);
//UTFT TFTS(ITDB24D,38,39,40,41);
//UTFT TFTS(ITDB28,38,39,40,41);
//UTFT TFTS(TFT01_24_8,38,39,40,41);
//UTFT TFTS(TFT01_24_16,38,39,40,41);
//UTFT TFTS(TFT01_28,38,39,40,41);
//UTFT TFTS(ILI9325C,38,39,40,41);
//UTFT TFTS(ILI9325D_8,38,39,40,41);
//UTFT TFTS(ILI9325D_16,38,39,40,41);
//UTFT TFTS(ILI9325D_16ALT,38,39,40,41);
extern uint8_t BigFont[];
void setup()
{
TFTS.InitLCD();
TFTS.setFont(BigFont);
TFTS.clrScr();
TFTS.drawRect( 0 , 0, 319, 239);
TFTS.drawRect( 10 , 10, 309, 229);
TFTS.drawRect( 20 , 20, 299, 219);
TFTS.drawRect( 30 , 30, 289, 209);
TFTS.drawRect( 40 , 40, 279, 199);
TFTS.drawRect( 50 , 50, 269, 189);
TFTS.drawRect( 60 , 60, 259, 179);
TFTS.drawRect( 70 , 70, 249, 169);
TFTS.drawRect( 80 , 80, 239, 159);
TFTS.drawRect( 90 , 90, 229, 149);
TFTS.drawRect( 100 , 100, 219, 139);
TFTS.drawRect( 110 , 110, 209, 129);
TFTS.print( "TFT7" , CENTER, 112);
}
void loop()
{
}
TFT7.ino (1.56 KB)