I ordered a 3.5" TFT LCD from aliexpress. As i read it has ILI9327 controller. I tried to use UTFT library but i couldn't manage it. I changed display parameter like this;
UTFT myGLCD(ILI9327,38,39,40,41);
is it wrong? Or what am i doing wrong?
I ordered a 3.5" TFT LCD from aliexpress. As i read it has ILI9327 controller. I tried to use UTFT library but i couldn't manage it. I changed display parameter like this;
UTFT myGLCD(ILI9327,38,39,40,41);
is it wrong? Or what am i doing wrong?
Do you have a link to the product that you bought because I can't make out any of the text on the board from your picture? Does it run on 3.3V? Do you have the pinouts for the display board?
If the photo you posted is of your 3.5 LCD and not a stock photos from somewhere, the controller is not an ili9327. While LCD was designed for a 5 volt I/O Mega board, the display should work on a 3.3v Due - but the SD card slot will not work as-is (it can fixed but that's another story).
Try this initialization line: UTFT myGLCD(R61581,38,39,40,41); and use the 480x320 demo project in the ARM/Teensy directory.
Here is link of my item;
I am using modified UTFT library from "GitHub - dgolda/UTFT: Modified UTFT library working with ILI9327 8-bit for example 3.5" TFT LCD from mcufriend.com". But i can not compile for Due. This compile error occurs;
Arduino: 1.6.0 (Windows 7), Board: "Arduino Due (Programming Port)"
C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:82:63: note: #pragma message: Compiling for Arduino Due (AT91SAM3X8E)...
#pragma message("Compiling for Arduino Due (AT91SAM3X8E)...")
^
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:83:0:
C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/arm/HW_SAM3X8E.h:9:51: error: no 'void UTFT::LCD_Writ_Bus(char, char, byte)' member function declared in class 'UTFT'
void UTFT::LCD_Writ_Bus(char VH,char VL, byte mode)
^
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
I have the same problem but given the common occurence of roblems like this I would put my question in a more general context. I wonder what would be your recommendation as to the approach of solving this kind of problem in general. Specifically, once the controlled chip ID is read (as you pointed out the printed info may not be valid), where should one look for a driver? How can this driver file be installed via the Arduino IDE? What setting in what library should one use?
Thanks you for your hints.
Post a link to the display on your desk e.g. Ebay sale
Or post a photo of the pcb side of the display.
Then readers can recognise what you have bought and advise appropriately.
David.
Thank you David. I will come back with documentating this particular issue. Can you recommend a topic where I could post my request for a step-by-step guide of how to deal with these issues (Setting up displays for Arduino) applicable as a framework for any displays.
Thanks again.
The Displays Forum is suitable.
Just make sure that we can identify the display you are using.
If photos in link do not match exactly, please describe the difference(s) or post a photo of the actual pcb on your desk.
David.