Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
Has anyone managed to get a SSD1289 TFTLCD screen to work.
Gents, I've connected my SSD1289, which I've proved working by connecting it to my Arduino Mega and running the UTFT demo programs so it's not the screen) and compiled and downloaded Todor's library and tried the pinout order in both directions but still only get a blank screen. Any help would be greatly appreciated. The printf statements all print so I assume the board is running the code correctly.
#include "mbed.h" #include "ssd1289.h" Serial pc(USBTX, USBRX); // tx, rx // Declare which fonts we will be using extern const font_t TerminusFont; //BusOut LCDBus(PB_13,PB_14,PB_15,PB_1,PB_2,PB_12,PA_11,PA_12,PC_7,PB_6,PA_7,PA_6,PA_5,PB_9,PB_8,PC_9); // DB15-DB0 DigitalOut RDPin(PC_5); BusOut LCDBus(PC_9,PB_8,PB_9,PA_5,PA_6,PA_7,PB_6,PC_7,PA_12,PA_11,PB_12,PB_2,PB_1,PB_15,PB_14,PB_13); // DB0-DB15 //PinName CS, PinName RESET, PinName RS, PinName WR SSD1289_LCD lcd(PC_4,PA_10,PC_8,PC_6, &LCDBus ); // control pins and data bus int main() { pc.printf("Starting\n"); // set RD pin high RDPin=1; // initialize display - place it in standard portrait mode and set background to black and // foreground to white color. lcd.Initialize(); pc.printf("Initialise\n"); // set current font to the smallest 8x12 pixels font. //lcd.SetFont(&TerminusFont); // print something on the screen lcd.SetBackground(COLOR_RED); lcd.FillScreen(); pc.printf("Filling\n"); lcd.Print( "Hello, World!", CENTER, 25 ); // align text to center horizontally and use starndard colors pc.printf("Printing\n"); while(1){} }
1 Answer
8 years, 8 months ago.
HELLO, I f401re and sd1289 and I still have a white screen.
The display plugged as in your example. Do you know what could be wrong?
Humph , I suppose it helps if you connect the right pins to the right sockets, it's working now and the pin order for the bus out object is BD0-BD15. Cheers Mike
posted by Michael Bawden 16 Jan 2015