hi i bought 3.5 mcufriend tft but i can deal with it all i have only (white screen)
the store link : LCD Touch Module 3.5 Inch Tft - Electra Store
the product pics :
i tried all libraries utft and mcufriend etc but nothing at all
i am using the tft with arduino mega
when i used mcufriend lib example grahic test_kbv i got
Serial took 0ms to start
ID = 0x404
and some times ID = 0x808
i changed mcufriend_shield.h and added
#define USE_SPECIAL
and changed mcufriend_spechial.h and un commented
#define USE_MEGA_8BIT_SHIELD
then tried the example again i got
Serial took 0ms to start
ID = 0xD3D3
pls help and thx
and that wht i get from example LCD_ID_readreg
Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)
reg(0x0000) 04 04 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 04 04 04 04 Manufacturer ID
reg(0x0009) 05 05 05 05 05 Status Register
reg(0x000A) 06 06 Get Power Mode
reg(0x000C) 04 04 Get Pixel Format
reg(0x0061) 65 65 RDID1 HX8347-G
reg(0x0062) 66 66 RDID2 HX8347-G
reg(0x0063) 67 67 RDID3 HX8347-G
reg(0x0064) 64 64 RDID1 HX8347-A
reg(0x0065) 65 65 RDID2 HX8347-A
reg(0x0066) 66 66 RDID3 HX8347-A
reg(0x0067) 67 67 RDID Himax HX8347-A
reg(0x0070) 74 74 Panel Himax HX8347-A
reg(0x00A1) A5 A5 A5 A5 A5 RD_DDB SSD1963
reg(0x00B0) B4 B4 RGB Interface Signal Control
reg(0x00B4) B4 B4 Inversion Control
reg(0x00B6) B6 B6 B6 B6 B6 Display Control
reg(0x00B7) B7 B7 Entry Mode Set
reg(0x00BF) BF BF BF BF BF BF ILI9481, HX8357-B
reg(0x00C0) 44 44 44 44 44 44 44 44 44 Panel Control
reg(0x00C8) 44 44 44 44 44 44 44 44 44 44 44 44 44 GAMMA
reg(0x00CC) 44 44 Panel Control
reg(0x00D0) 54 54 54 Power Control
reg(0x00D2) 56 56 56 56 56 NVM Read
reg(0x00D3) 57 57 57 57 ILI9341, ILI9488
reg(0x00D4) 54 54 54 54 Novatek ID
reg(0x00DA) 56 56 RDID1
reg(0x00DB) 57 57 RDID2
reg(0x00DC) 54 54 RDID3
reg(0x00E0) E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 GAMMA-P
reg(0x00E1) E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 GAMMA-N
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 Adjust Control 2
reg(0x00F6) F6 F6 F6 F6 Interface Control
ZinggJM
February 20, 2023, 7:26pm
3
@osamaabdelmohsen , Hi, welcome to the forum!
Your display looks rather old. It seems to have series resistors for voltage level adaptation of IO lines. And it doesn't have read capabilities.
You could try to force ID to 9486; there is a good chance it is a ILI9486.
Also try with 8347.
Try to find out the settings for 16bit parallel on MEGA, I don't know these by heart.
Jean-Marc
b707
February 20, 2023, 7:33pm
4
As far I remember, the support of the HX8347 is not included in the library by default, you have to uncomment it in the library .h file
@ZinggJM thx for your replay i tried to force id as u said but i still have the white screen
and for the 16 bit settings can that help ?
@b707 thx for your replay
in which file exactly pls
that one ?
This model should be compatible with UTFT library
In library folder open the file memorysaver.h and uncomment the line corresponding to your TFT model.
In examples set the model of your TFT in line where the model is normally ITDB32S.
@FernandoGarcia thx for your replay
as the website says its ILI9486 i changed memorysaver.h
i uncommanted this line
#define DISABLE_ILI9486 1 // CTE40
and with the example i changed the function paramters to this
UTFT myGLCD(ILI9486,38,39,40,41);
its still white screen but sometimes i got this cyan line:
b707
February 20, 2023, 9:11pm
9
Do you know what the "disable" word mean?
My mistake, I mean, comment.
Then uncomment all others options.
My bad i wasn't focus.
I will try it when i get home
ZinggJM
February 21, 2023, 8:10am
12
The library I initially used with this kind of TFT displays is TFT_HX8357 . It supports several controllers.
My first TFT display was a HVGA 480x320 3.2" TFTLCD Shield with MEGA2560 combo.
@ZinggJM still the same the single cyan line in the bottom of the tft screen
thx guys it works with utft when i used UTFT myGLCD(R61581,38,39,40,41);
driver R61581
Glad to hear!
Take a look in this post .
Thx for u help but
The code in the post didn't get my full screen
it also worked for mcufriend library when i forced i
d = 0x1581
and in spechial.h i make it
16 bit with mega
but when i run example diagnose_touchpins i only got this output
Making all control and bus pins INPUT_PULLUP
Typical 30k Analog pullup with corresponding pin
would read low when digital is written LOW
e.g. reads ~25 for 300R X direction
e.g. reads ~30 for 500R Y direction
and when i used TouchScreen_Calibr_native example its says :
touch calibration failed
How to know this pin xp xm yp ym
This code was done to a TFT with resolution of 320x240. To get full screen ajust all the coordinates.
This example is to learn how to make and manage menus.
To calibrate your touch try the example from URTouch library then validade it here .
my display isnt in the displays list wht should i do
when i run the calibration test only the left half of the screen i can use touch in it the other have dosent response