First time forum poster. I've tried to be thorough. Happy to provide anything I've missed that will help.
Issue: 3.2" TFT LCD screen w LCD Screen Adapter Shield shows up as blank on all example tests
Equipment: OSOYOO Model: LACC200643, on Kookye Mega2650 Board (amazon purchase)
Arrive in an OSOYOO BOX but has a Kookye label on the side, listing shows sold by Kookye
Display has part number HSD035338E1 on face, TFT_320QVT_9341 on back near SD Card mount (note: SD Card slot is empty)
Shield has model TFT LCD Mega Shield V2.2 (Touch screen, TFT LCD, SD Card), don't see any resistor packs adjacent to the 18x2 connector
Arduino is marked OSOYOO MEGA2650 (made in China)
Background: followed the Quick start guide supplied. downloaded libraries. examples showed display of buttons on one example URTouch_Button Test but the touch screen would not respond and the screen did not update as expected (no "buffer full" from else statement or any other response from serial to screen). The code for this example is included in the attached text file and below. You'll note that I changed the line for the myGLCD definition (about line 29) to reflect the screen type as best I can tell (see link just below).
The User manual is listed as http://osyoo.com/2016/07/22/ili9341-3-2-screen/
Installed the Adafruit GFX and MCU Friend_kbv libraries for help in diagnostics and received the following when running the diagnose tft and diagnose touch pins and LCD_id readreg examples (See attached text file, also pasted below). BTW first ran examples and only got a blank screen. I noticed in the LCD ID readreg that it mentions for use with UNO. Not sure if it is also applicable to the MEGA but based on reading other posts, I've guessed that it is.
I see this in mcufriend_how_to.txt .... (ILI9341 240x320 ID=0x9341) but there is no #define support reference next to it.
Request:
Looking for assistance in getting proper setup information such that the board will function with an example that shows the proper touchscreen function. Any diagnostic steps or previous posts that I can be directed to are appreciated.
PASTED OUTPUT FROM diagnose tft, diagnose touch pins, lcd id readreg:
Diagnose whether this controller is supported
There are FAQs in extras/mcufriend_how_to.txt
tft.readID() finds: ID = 0x404
MCUFRIEND_kbv version: 2.9.9
Probably a write-only Mega2560 Shield
#define USE_SPECIAL in mcufriend_shield.h
#define appropriate SPECIAL in mcufriend_special.h
e.g. USE_MEGA_16BIT_SHIELD
e.g. USE_MEGA_8BIT_SHIELD
Hint. A Mega2560 Shield has a 18x2 male header
Often a row of resistor-packs near the 18x2
RP1-RP7 implies 16-bit but it might be 8-bit
RP1-RP4 or RP1-RP5 can only be 8-bit
This ID is not supported
look up ID in extras/mcufriend_how_to.txt
you may need to edit MCUFRIEND_kbv.cpp
to enable support for this ID
e.g. #define SUPPORT_8347D
New controllers appear on Ebay often
If your ID is not supported
run LCD_ID_readreg.ino from examples/
Copy-Paste the output from the Serial Terminal
to a message in Displays topic on Arduino Forum
or to Issues on GitHub
Note that OPEN-SMART boards have diff pinout
Edit the pin defines in LCD_ID_readreg to match
Edit mcufiend_shield.h for USE_SPECIAL
Edit mcufiend_special.h for USE_OPENSMART_SHIELD_PINOUT
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) 0C 0C ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 0C 0C 0C 0C Manufacturer ID
reg(0x0009) 0D 0D 0D 0D 0D Status Register
reg(0x000A) 0E 0E Get Power Mode
reg(0x000C) 0C 0C Get Pixel Format
reg(0x0061) 6D 6D RDID1 HX8347-G
reg(0x0062) 6E 6E RDID2 HX8347-G
reg(0x0063) 6F 6F RDID3 HX8347-G
reg(0x0064) 6C 6C RDID1 HX8347-A
reg(0x0065) 6D 6D RDID2 HX8347-A
reg(0x0066) 6E 6E RDID3 HX8347-A
reg(0x0067) 6F 6F RDID Himax HX8347-A
reg(0x0070) 7C 7C Panel Himax HX8347-A
reg(0x00A1) 2D 2D 2D 2D 2D RD_DDB SSD1963
reg(0x00B0) 3C 3C RGB Interface Signal Control
reg(0x00B4) 3C 3C Inversion Control
reg(0x00B6) 3E 3E 3E 3E 3E Display Control
reg(0x00B7) 3F 3F Entry Mode Set
reg(0x00BF) 3F 3F 3F 3F 3F 3F ILI9481, HX8357-B
reg(0x00C0) 4C 4C 4C 4C 4C 4C 4C 4C 4C Panel Control
reg(0x00C8) 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C GAMMA
reg(0x00CC) 4C 4C Panel Control
reg(0x00D0) 5C 5C 5C Power Control
reg(0x00D2) 5E 5E 5E 5E 5E NVM Read
reg(0x00D3) 5F 5F 5F 5F ILI9341, ILI9488
reg(0x00D4) 5C 5C 5C 5C Novatek ID
reg(0x00DA) 5E 5E RDID1
reg(0x00DB) 5F 5F RDID2
reg(0x00DC) 5C 5C RDID3
reg(0x00E0) 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C GAMMA-P
reg(0x00E1) 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D GAMMA-N
reg(0x00EF) 6F 6F 6F 6F 6F 6F ILI9327
reg(0x00F2) 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E Adjust Control 2
reg(0x00F6) 7E 7E 7E 7E Interface Control
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) 0C 0C ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 0C 0C 0C 0C Manufacturer ID
reg(0x0009) 0D 0D 0D 0D 0D Status Register
reg(0x000A) 0E 0E Get Power Mode
reg(0x000C) 0C 0C Get Pixel Format
reg(0x0061) 6D 6D RDID1 HX8347-G
reg(0x0062) 6E 6E RDID2 HX8347-G
reg(0x0063) 6F 6F RDID3 HX8347-G
reg(0x0064) 6C 6C RDID1 HX8347-A
reg(0x0065) 6D 6D RDID2 HX8347-A
reg(0x0066) 6E 6E RDID3 HX8347-A
reg(0x0067) 6F 6F RDID Himax HX8347-A
reg(0x0070) 7C 7C Panel Himax HX8347-A
reg(0x00A1) 2D 2D 2D 2D 2D RD_DDB SSD1963
reg(0x00B0) 3C 3C RGB Interface Signal Control
reg(0x00B4) 3C 3C Inversion Control
reg(0x00B6) 3E 3E 3E 3E 3E Display Control
reg(0x00B7) 3F 3F Entry Mode Set
reg(0x00BF) 3F 3F 3F 3F 3F 3F ILI9481, HX8357-B
reg(0x00C0) 4C 4C 4C 4C 4C 4C 4C 4C 4C Panel Control
reg(0x00C8) 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C 4C GAMMA
reg(0x00CC) 4C 4C Panel Control
reg(0x00D0) 5C 5C 5C Power Control
reg(0x00D2) 5E 5E 5E 5E 5E NVM Read
reg(0x00D3) 5F 5F 5F 5F ILI9341, ILI9488
reg(0x00D4) 5C 5C 5C 5C Novatek ID
reg(0x00DA) 5E 5E RDID1
reg(0x00DB) 5F 5F RDID2
reg(0x00DC) 5C 5C RDID3
reg(0x00E0) 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C 6C GAMMA-P
reg(0x00E1) 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D 6D GAMMA-N
reg(0x00EF) 6F 6F 6F 6F 6F 6F ILI9327
reg(0x00F2) 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E 7E Adjust Control 2
reg(0x00F6) 7E 7E 7E 7E Interface Control
OSOYOO testing output V1.txt (11 KB)
