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.
10 years, 4 months ago.
ER-TFT028-4 display not working with LPC1768
Hi, I was using HDA280-3S display with my mbed LPC1768.The display was working fine with all the features written by you.Thanks to the code and the libraries written by you.Due to unavailability of the HDA280-3S(also HDA280-3S1) I have tried to interface with ER-TFT028-4 ,the link attached.http://www.buydisplay.com/default/serial-spi-2-8-tft-lcd-module-display-320x240-touch-sceen-arduino. I have interface in 4 wire mode(SPI).The link of the code I am attaching http://www.buydisplay.com/download/democode/ER-TFT028-4_4-Wire_SPI_DemoCode.txt. The display works on ILI9341 controller. With the program I have (The prescribed one by you) and the code which " buy display " people have given I am unable to display anything.Do I need to give pull ups to MISO & MOSI..?What shall I do.Please advice.
You can try to use the init parameters out of the ER-TFT028-4 demo code. If you compare void ILI9341_Initial(void) and my SPI_TFT_ILI9341::tft_reset() you can see that there are different settings for some registers. Do you see the backlite ?
posted by Peter Drescher 19 Aug 2014I can see a white backlight after the system is on.I have made the following changes with the program
============================================================= DigitalOut led1(LED1); DigitalOut led2(LED2); DigitalOut led3(LED3); DigitalOut led4(LED4); DigitalOut SDA(p5); DigitalOut SDO(p6); DigitalOut SCL(p7); DigitalOut CS(p8); DigitalOut RES(p9); DigitalOut RS(p10);
Rest of the code
int main() {
led1 = 1; led2 = 1; delayms(10); ILI9341_Initial(); while(1) { led3 = 1; led4 = 1; led1 = 0; led2 = 0; ClearScreen(0x0000); CLEAR DISPLAY
ClearScreen(0xf800); RED delayms(500); led3 = 0; led4 = 0; led1 = 1; led2 = 1;
delayms(5000);
} }
Still I am unable to get the display "RED colour".What change do I have to make....??
posted by Ranjith.R Nair 19 Aug 2014You don't use my lib ! The init parameters of some registers in the demo code are different from the values I use in my lib. This can be, because this tft is a little bit different or the controller is only compatible to ILI9341. My idea was to use the initial parameters out of the demo code and put it into my lib to get this display working.
posted by Peter Drescher 19 Aug 2014I will try and get back to you...
posted by Ranjith.R Nair 20 Aug 2014