White screen - Using TFT 3.2" LCD shield (ILI9327) on arduino Mega 2560

White screen - Using TFT 3.2" LCD shield on Arduino Mega 2560

I'm using an open-smart 3.2-inch TFT LCD shield with driver ic: ILI9327 on Arduino mega and no matter what code I upload from the MCUFRIEND_kbv library it shows me a white screen.

I'm from Singapore. Items info as follows,

https://www.lazada.sg/products/32-inch-tft-lcd-display-shield-kit-touch-screen-onboard-lm75-sensor-module-pen-tf-card-for-mega2560-compatible-for-arduino-i2094713528-s11660108211.html?spm=a2o42.searchlist.list.19.369638faQBMvab&search=1


Graphical text_kbv.ino

Serial took 0ms to start ID = 0x50


LCD_ID_readreg.ino

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) 00 00 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 04 04 04 04 Manufacturer ID
reg(0x0009) 08 08 08 08 08 Status Register
reg(0x000A) 08 08 Get Power Mode
reg(0x000C) 0C 0C Get Pixel Format
reg(0x0061) 20 20 RDID1 HX8347-G
reg(0x0062) 20 20 RDID2 HX8347-G
reg(0x0063) 20 20 RDID3 HX8347-G
reg(0x0064) 24 24 RDID1 HX8347-A
reg(0x0065) 24 24 RDID2 HX8347-A
reg(0x0066) 24 24 RDID3 HX8347-A
reg(0x0067) 24 24 RDID Himax HX8347-A
reg(0x0070) 20 20 Panel Himax HX8347-A
reg(0x00A1) 20 20 F3 20 20 RD_DDB SSD1963
reg(0x00B0) 20 20 RGB Interface Signal Control
reg(0x00B4) 24 24 Inversion Control
reg(0x00B6) 24 24 24 24 24 Display Control
reg(0x00B7) 24 26 Entry Mode Set
reg(0x00BF) 2E 2E 2C 2C 2C 2C ILI9481, HX8357-B
reg(0x00C0) 00 00 00 00 00 00 00 00 00 Panel Control
reg(0x00C8) 08 08 08 08 08 08 08 08 08 08 08 08 08 GAMMA
reg(0x00CC) 0C 0C Panel Control
reg(0x00D0) 00 00 00 Power Control
reg(0x00D2) 00 00 00 00 00 NVM Read
reg(0x00D3) 00 00 00 00 ILI9341, ILI9488
reg(0x00D4) 04 04 04 04 Novatek ID
reg(0x00DA) 08 08 RDID1
reg(0x00DB) 08 08 RDID2
reg(0x00DC) 0C 0C RDID3
reg(0x00E0) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 GAMMA-P
reg(0x00E1) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 GAMMA-N
reg(0x00EF) 2C 2C 2C 2C 2C 2C ILI9327
reg(0x00F2) 20 20 20 20 20 20 20 20 20 20 20 20 Adjust Control 2
reg(0x00F6) 24 24 24 24 Interface Control

From C:\Users\ ... \Documents\Arduino\libraries\Mcufriend_kbv\extras\mcufriend_how_to.txt

19. OPEN-SMART Shields have different wiring to regular Uno Shields:
    Edit utility/mcufriend_shield.h:  #define USE_SPECIAL
    Edit utility/mcufriend_special.h: #define USE_OPENSMART_SHIELD_PINOUT_xxx e.g. USE_OPENSMART_SHIELD_PINOUT_MEGA
    Edit MCUFRIEND_kbv.cpp:           #define SUPPORT_8352B

Since ILI9327 is always supported you do not need to edit MCUFRIEND_kbv.cpp

Your title says ILI9327 but the photo in the link shows ILI9329. Both are supported by default.

Please confirm which controller is printed on the pcb.

David.

Great. Thanks for your reply.

Driver IC : ILI9327 (on the PCB)

Is there any sample code to test

Is it need to remove "//"

Is it need to change "USE_OPENSMART_SHIELD_PINOUT_MEGA"

Is it need to change

Yes.

No, you have an old version of MCUFRIEND_kbv. Just enable USE_OPENSMART_SHIELD_PINOUT
But I suggest that you update the library to v2.9.9 via the IDE Library Manager.

If you are unsure of where you got your library from, delete it. And install properly i.e. via the IDE Library Manager.

Yes. All libraries come with example sketches.

David.

Great. It works well.

Installed a new version (MCUFRIEND_kbv) and edited the 3 files.

Thanks for your support.

HI! thanks for support! Can somebody tell me how to control backlight led? (aparently is on pIN 3)
thanks!

Look at the pcb. You will see a box marked "backlight" with an empty solder-bridge called D3 and a closed solder-bridge called 3.3V.

Open the 3.3V bridge. Close the D3 bridge.

Now you can control backlight via the D3 pin. Note that any signal must be 3.3V logic. e.g. use a voltage-divider like 4k7+10k.

PWM should work but in practice you only ever want backlight on or off.

David.

thank you!!!!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.