Hello there
I have bought an 2.4" tft/lcd shield that fits the UNO I have:
Any Idea what I have to do to start the screen working?
It worked with examples of the UTFT-Library, but now I try to write an own program and the screen is only white. When I use myGLCD.getDisplayXSize(), it gives me the right value.
What do I have to write in UTFT myGLCD()?
Or is the problem something else?
The full code:
#include <UTFT.h>
#include <URTouch.h>
// Declare which fonts we will be using
extern uint8_t arial_bold[];
extern uint8_t Inconsola[];
extern uint8_t SevenSegNumFont[];
// ILI9341
UTFT myGLCD(ILI9341_S5P,11,13,10,8,9); // Remember to change the model parameter to suit your display module!
String xsize, ysize;
void setup()
{
myGLCD.InitLCD();
myGLCD.clrScr();
myGLCD.setContrast(32);
myGLCD.setBrightness(8);
xsize = myGLCD.getDisplayXSize();
ysize = myGLCD.getDisplayYSize();
// myGLCD.setFont(Insola);
Serial.begin(9600);
Serial.print(xsize + " " + ysize);
myGLCD.fillScr(VGA_BLUE);
myGLCD.setBackColor(VGA_RED);
}
void loop()
{
myGLCD.fillScr(VGA_GREEN);
myGLCD.setColor(VGA_BLACK);
myGLCD.setColor(VGA_BLUE);
myGLCD.drawLine(10, 10, 100, 100);
delay(10000);
}
Thank you for answers!