I used the Kedei 2.8" TFT LCD display and the LCD controller is HX8347D. the connetion from arduino uno R3 to LCD is D3 TP_IRQ
D4 TP_CS
D5 SD_CS Micro SD
D7 LCD_DC LCD
D9 LCD_BL LCD
D10 LCD_CS LCD
D11 MOSI SPI
D12 MISO SPI
D13 SCLK SPI
but after I upload the below sample program, the LCD displayed white with nothing. what is the problem?
include <stdint.h>
#include <LCD.h>
#include <SPI.h>
#define AVR_ATmega32U4
void setup()
{
SPI.setDataMode(SPI_MODE3);
SPI.setBitOrder(MSBFIRST);
SPI.setClockDivider(SPI_CLOCK_DIV4);
SPI.begin();
Tft.lcd_init(); // init TFT library
Tft.lcd_display_string(60, 120, (const uint8_t *)"Hello, world !", FONT_1608, RED);
Tft.lcd_display_string(30, 152, (const uint8_t *)"2.8' TFT Touch Shield", FONT_1608, RED);
}
void loop()
{
}
/*********************************************************************************************************
END FILE