OPEN-SMART HX8352B with ESP32 and MCUFRIEND_kbv

Hi guys..
i have a new display, an OPEN-SMART HX8352B, that works fine with a MEGA2560 and original library, attached here.

but it is too slow and i need a reactive display. esp32 is the right choose i think..

waiting to use esp32 with this display, i tested it with MEGA2560 and MCUFRIEND_kbv library.

LCD_ID_readreg with MEGA2560 give me this response:

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) 41 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 20 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 24 Entry Mode Set
reg(0x00BF) 2C 2C 2C 2C 2C 2C ILI9481, HX8357-B
reg(0x00C0) 00 03 03 03 03 03 03 03 03 Panel Control
reg(0x00C8) 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B GAMMA
reg(0x00CC) 0F 0F Panel Control
reg(0x00D0) 03 01 01 Power Control
reg(0x00D2) 01 00 00 00 00 NVM Read
reg(0x00D3) 00 00 00 00 ILI9341, ILI9488
reg(0x00D4) 04 05 05 05 Novatek ID
reg(0x00DA) 09 08 RDID1
reg(0x00DB) 08 08 RDID2
reg(0x00DC) 0C 0D RDID3
reg(0x00E0) 21 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 61 61 61 61 61 61 61 61 61 61 61 Adjust Control 2
reg(0x00F6) 65 24 24 24 Interface Control

in utility/mcufriend_shield.h:

#define USE_SPECIAL

in utility/mcufriend_special.h:

#define USE_OPENSMART_SHIELD_PINOUT //thanks Michel53

but graphictest_kbv doesn't works..
please helpme..

Thanks in advance.

mcufriend_special.h (41.4 KB)

mcufriend_shield.h (23.9 KB)

OPENSMART_TFT.zip (935 KB)

The current Release of MCUFRIEND_kbv does not work properly with OPENSMART HX8352B
The Beta on GitHub does work. I intend to issue a new Release soon.

I have not any intention of supporting OPENSMART boards on a ESP32.
If you want speed with OPENSMART, buy a Uno.

I strongly suggest that you remove the OPENSMART_TFT folder. It contains a hacked copy of an obsolete MCUFRIEND_kbv library. I would not mind if they had chosen a different class name. Arduino will be confused if you have two different versions of MCUFRIEND_kbv

David.