From 0c708323bddbbd49b28ddbe3cb87e240e10c2c83 Mon Sep 17 00:00:00 2001 From: moononournation Date: Thu, 27 Jul 2023 18:51:26 +0800 Subject: [PATCH] add Elecrow Wizee-ESP32 WZ8048C050 support --- README.md | 2 ++ .../PDQgraphicstest/Arduino_GFX_dev_device.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 210ec8de..74be8d1d 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,7 @@ Some larger display require RGB + 3-bit SPI combo interface, This interface requ * [seeed studio Wio Terminal](https://wiki.seeedstudio.com/Wio-Terminal-Getting-Started/) * [Waveshare RP2040-LCD-1.28](https://www.waveshare.com/wiki/RP2040-LCD-1.28) * [wireless-tag WT-32-SC01](http://www.wireless-tag.com/portfolio/wt32-sc01/) +* [Elecrow Wizee-ESP32 WZ8048C050](https://www.elecrow.com/esp32-display-5-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html) * [wireless-tag ZX2D10GE10R-V4848](https://github.com/wireless-tag-com/ZX2D10GE01R-V4848) * [wireless-tag ZX3D50CE02S](https://github.com/wireless-tag-com/ZX3D50CE02S) * [wireless-tag ZX3D95CE01S-AR](https://github.com/wireless-tag-com/ZX3D95CE01S-AR-4848) @@ -308,6 +309,7 @@ Some larger display require RGB + 3-bit SPI combo interface, This interface requ * HX8357A 320x480 [[demo video](https://youtu.be/wJkLO_xCTXA)] (currently only portrait works, i.e. rotation 0 and 2) * HX8357B (9-bit SPI) 320x480 [[demo video](https://youtu.be/pB6_LOCiUqg)] * HX8369A 480x800 [[demo video](https://youtu.be/sXpU8bhtXKQ)] [[LVGL demo video](https://youtu.be/q575lTuVDcU)] +* ILI6122 (RGB) 480x800 * ILI6485 (RGB) 480x272 [[demo video](https://youtu.be/60rl7QoU4Sc)] * ILI9225 176x220 [[demo video](https://youtu.be/jm2UrCG27F4)] * ILI9341 240x320 [[demo video](https://youtu.be/NtlEEL7MkQY)] diff --git a/examples/PDQgraphicstest/Arduino_GFX_dev_device.h b/examples/PDQgraphicstest/Arduino_GFX_dev_device.h index 8fcf3d44..363bbd2e 100644 --- a/examples/PDQgraphicstest/Arduino_GFX_dev_device.h +++ b/examples/PDQgraphicstest/Arduino_GFX_dev_device.h @@ -25,6 +25,7 @@ // #define MAKERFABS_ESP32_S3_TFT_4_0 // #define MAKERFABS_ESP32_S3_TFT_4_3_v1_3 // #define WT32_SC01 +// #define WZ8048C050 // or called "Elecrow Wizee-ESP32" // #define ZX2D10GE10R_V4848 // #define ZX3D50CE02S // or called "WT32-SC01 PLUS" // #define ZX3D95CE01S_AR @@ -370,6 +371,21 @@ Arduino_RGB_Display *gfx = new Arduino_RGB_Display( Arduino_DataBus *bus = new Arduino_ESP32SPI(21 /* DC */, 15 /* CS */, 14 /* SCK */, 13 /* MOSI */, GFX_NOT_DEFINED /* MISO */); Arduino_GFX *gfx = new Arduino_ST7796(bus, 22 /* RST */, 3 /* rotation */); +#elif defined(WZ8048C050) +#define GFX_DEV_DEVICE WZ8048C050 +#define GFX_BL 2 +// ILI6122 +Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel( + 40 /* DE */, 41 /* VSYNC */, 39 /* HSYNC */, 0 /* PCLK */, + 45 /* R0 */, 48 /* R1 */, 47 /* R2 */, 21 /* R3 */, 14 /* R4 */, + 5 /* G0 */, 6 /* G1 */, 7 /* G2 */, 15 /* G3 */, 16 /* G4 */, 4 /* G5 */, + 8 /* B0 */, 3 /* B1 */, 46 /* B2 */, 9 /* B3 */, 1 /* B4 */, + 0 /* hsync_polarity */, 8 /* hsync_front_porch */, 8 /* hsync_pulse_width */, 8 /* hsync_back_porch */, + 0 /* vsync_polarity */, 8 /* vsync_front_porch */, 8 /* vsync_pulse_width */, 8 /* vsync_back_porch */, + 1 /* pclk_active_neg */, 16000000 /* prefer_speed */); +Arduino_RGB_Display *gfx = new Arduino_RGB_Display( + 800 /* width */, 480 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */); + #elif defined(ZX2D10GE10R_V4848) #define GFX_DEV_DEVICE ZX2D10GE10R_V4848 #define GFX_BL 38