Hello Everyone,
I am trying to use TFT LCD Display ILI9486/ILI9488 480x320 with Arduino Due. The display is showing blank white screen. My test program compiles and uploads without any error. However, LCD display remains blank with white screen.
I tried with UTFT library and also with TFT_HX8357_Due-master library. But the result still remains the same.
Here is the link for the LCD screen with full product details:
Below is my test program with UTFT library, as you can see, I even tried several different port numbers, without any success.
Truly appreciate any suggestions and help to resolve this issue.
//==============================================================
#define pin_output 5
#define pin_input_magnification 4
#define pin_input_sleep 3
unsigned long start_time;
unsigned long stop_time;
unsigned int values[600]; // Array mit den eingelesenen Spannungswerten
int i, j;
int Trigger_time; // Dauer des Triggerpulses
int gray_value;
#define CENTRE 240
#include <UTFT.h>
// Declare which fonts we will be using
extern uint8_t SmallFont[];
UTFT myGLCD (ILI9486,38,39,40,41);
//UTFT myGLCD (ILI9486,19,18,17,16);
//UTFT myGLCD (ILI9486,19,20,21,22);
//UTFT myGLCD (CTE40,19,18,17,16);
//UTFT myGLCD (CTE40,19,20,21,22);
// =========================
// ========= SETUP =========
// =========================
void setup()
{
//Serial.begin(115200);
Serial.begin(9600);
REG_ADC_MR = 0x10380080; // change from 10380200 to 10380080, 1 is the PREESCALER and 8 means FREERUN
ADC -> ADC_CHER = 0x03; // enable ADC on pin A7
pinMode(pin_output, OUTPUT);
pinMode(pin_input_magnification, INPUT); // Switch-input for magnification
pinMode(pin_input_sleep, INPUT); // Switch-input for sleep-mode
digitalWrite(pin_output, LOW);
Trigger_time = 1; // Dauer des Triggerpulses
// Setup the LCD
myGLCD.InitLCD();
myGLCD.setFont(SmallFont);
myGLCD.clrScr();
myGLCD.setColor(255, 255, 0);
myGLCD.fillRect(0, 0, 432, 13);
myGLCD.setColor(0, 0, 0);
myGLCD.setBackColor(255, 255, 0);
myGLCD.print("Setup960001 - Arduino Due - LCD", CENTER, 1);
Serial.println("Setup960001 - Arduino Due - Serial");
}
// ========================
// ========= LOOP =========
// ========================
void loop()
{
//delayMicroseconds(100);
//delay(5);
delay(1000);
Serial.println("Hello World960002 - Arduino Due - Serial");
myGLCD.print("Hello World960002 - Arduino Due - LCD", CENTER, 1);
for (i = 0; i < 10; i++)
{
Serial.print(i);
Serial.print(",");
}
Serial.println(i);
delay(1000);
Serial.println("Loop960003 - Arduino Due - Serial");
myGLCD.print("Loop960003 - Arduino Due - LCD", CENTER, 1);
for (i = 20; i < 30; i++)
{
Serial.print(i);
Serial.print(",");
}
Serial.println(i);
}
//==============================================================