Hey there experts I am struggling to get an ILI9481 to work with a pro mini. I have tried all sorts of combinations and each time I get the backlight LED to work and the screen does flash but nothing displays. I have tried the Adafruit and mcufriend_kbv libraries but both give the same results. I currently have defined the following;
reset on pin 7
CD on pin 8
CS on pin 9
SDI on pin 11
SDO on pin 12
power is taken from the power rails and CLK is connected to pin 13 but doesn't seem to be used in the ino (I presume it is in the library?)
The code I am trying is ;
#include <Adafruit_GFX.h>
#include <Adafruit_TFTLCD.h>
#define LCD_CS 9 // Chip Select
#define LCD_CD 8 // Command/Data
#define LCD_SDI 11 // LCD Write
#define LCD_SDO 12 // LCD Read
#define LCD_RESET 7 // Can alternately just connect to Arduino's reset pin
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_SDI, LCD_SDO, LCD_RESET);
void setup() {
tft.reset();
tft.begin(0x9481);
tft.setRotation(1);
tft.fillScreen(BLUE);
tft.setCursor(80,100);
tft.setTextColor(WHITE);
tft.setTextSize(4);
tft.print("TFT demo");
tft.fillRect(80,200, 321, 60, RED);
delay(2000);
}
void loop()
{
tft.fillRect(80,200,321,60,BLACK);
delay(1000);
tft.fillRect(80,200,321,60,RED);
delay(1000);
}
I would appreciate it if anyone can spot my silly mistake.
Regards
Mike