prenticedavid / MCUFRIEND_kbv

MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields
Other
357 stars 177 forks source link

Add native support 0x8325 id #201

Open weoleg opened 2 years ago

weoleg commented 2 years ago

16:11:07.365 -> Read Registers on MCUFRIEND UNO shield 16:11:07.412 -> controllers either read as single 16-bit 16:11:07.412 -> e.g. the ID is at readReg(0) 16:11:07.459 -> or as a sequence of 8-bit values 16:11:07.506 -> in special locations (first is dummy) 16:11:07.506 -> 16:11:07.506 -> reg(0x0000) 83 25 ID: ILI9320, ILI9325, ILI9335, ... 16:11:07.600 -> reg(0x0004) 00 00 00 00 Manufacturer ID 16:11:07.647 -> reg(0x0009) 00 00 00 00 00 Status Register 16:11:07.694 -> reg(0x000A) 00 00 Get Power Mode 16:11:07.740 -> reg(0x000C) 00 00 Get Pixel Format 16:11:07.740 -> reg(0x0061) 00 00 RDID1 HX8347-G 16:11:07.787 -> reg(0x0062) 00 00 RDID2 HX8347-G 16:11:07.834 -> reg(0x0063) 00 00 RDID3 HX8347-G 16:11:07.881 -> reg(0x0064) 00 00 RDID1 HX8347-A 16:11:07.881 -> reg(0x0065) 00 00 RDID2 HX8347-A 16:11:07.928 -> reg(0x0066) 00 00 RDID3 HX8347-A 16:11:07.975 -> reg(0x0067) 00 00 RDID Himax HX8347-A 16:11:07.975 -> reg(0x0070) 37 10 Panel Himax HX8347-A 16:11:08.069 -> reg(0x00A1) 00 00 00 00 00 RD_DDB SSD1963 16:11:08.115 -> reg(0x00B0) 10 10 RGB Interface Signal Control 16:11:08.162 -> reg(0x00B4) 14 10 Inversion Control 16:11:08.209 -> reg(0x00B6) 10 10 10 10 10 Display Control 16:11:08.209 -> reg(0x00B7) 10 10 Entry Mode Set 16:11:08.256 -> reg(0x00BF) 10 10 10 10 10 10 ILI9481, HX8357-B 16:11:08.303 -> reg(0x00C0) 00 00 00 00 00 00 00 00 00 Panel Control 16:11:08.365 -> reg(0x00C8) 00 0B 00 0B 00 0B 00 0B 00 0B 00 0B 00 GAMMA 16:11:08.412 -> reg(0x00CC) 00 04 Panel Control 16:11:08.459 -> reg(0x00D0) 10 10 10 Power Control 16:11:08.506 -> reg(0x00D2) 10 10 10 10 10 NVM Read 16:11:08.553 -> reg(0x00D3) 10 10 10 10 ILI9341, ILI9488 16:11:08.584 -> reg(0x00D4) 10 10 10 10 Novatek ID 16:11:08.647 -> reg(0x00DA) 10 1C RDID1 16:11:08.647 -> reg(0x00DB) 10 75 RDID2 16:11:08.694 -> reg(0x00DC) 10 14 RDID3 16:11:08.694 -> reg(0x00E0) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA-P 16:11:08.756 -> reg(0x00E1) C7 01 C7 01 C7 01 C7 01 C7 01 C7 01 C7 01 C7 01 GAMMA-N 16:11:08.865 -> reg(0x00EF) 02 21 02 21 02 21 ILI9327 16:11:08.912 -> reg(0x00F2) 10 10 10 10 10 10 10 10 10 10 10 10 Adjust Control 2 16:11:08.959 -> reg(0x00F6) 10 10 10 10 Interface Control

16:17:36.749 -> Diagnose whether this controller is supported 16:17:36.749 -> There are FAQs in extras/mcufriend_how_to.txt 16:17:36.796 -> 16:17:36.843 -> tft.readID() finds: ID = 0x8325 16:17:36.843 -> 16:17:36.843 -> MCUFRIEND_kbv version: 3.0.0 16:17:36.890 -> 16:17:37.078 -> 16:17:37.078 -> This ID is not supported 16:17:37.078 -> look up ID in extras/mcufriend_how_to.txt 16:17:37.171 -> you may need to edit MCUFRIEND_kbv.cpp 16:17:37.171 -> to enable support for this ID 16:17:37.218 -> e.g. #define SUPPORT_8347D 16:17:37.265 -> 16:17:37.265 -> New controllers appear on Ebay often 16:17:37.265 -> If your ID is not supported 16:17:37.312 -> run LCD_ID_readreg.ino from examples/ 16:17:37.359 -> Copy-Paste the output from the Serial Terminal 16:17:37.406 -> to a message in Displays topic on Arduino Forum 16:17:37.453 -> or to Issues on GitHub 16:17:37.499 -> 16:17:37.499 -> Note that OPEN-SMART boards have diff pinout 16:17:37.499 -> Edit the pin defines in LCD_ID_readreg to match 16:17:37.593 -> Edit mcufiend_shield.h for USE_SPECIAL 16:17:37.593 -> Edit mcufiend_special.h for USE_OPENSMART_SHIELD_PINOUT

prenticedavid commented 2 years ago

First off. Please disable the timestamps, They just annoy !!

I suspect that you have an ILI9325 or clone. Just with bit#4 stuck low. Mind you, there seem to be many 0x10 readings.

I suggest that you just force ID = 0x9325 and report back. (also try 0x9320)

Please confirm that you have a genuine Uno Shield plugged into real Arduino header sockets as Nature intended.

David.