Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the configuration of the ESP32 development board for VIEWE. #128

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f4d673d
Update README.md
VIEWESMART Nov 25, 2024
57e4dca
Update README_CN.md
VIEWESMART Nov 25, 2024
b96f30d
Update README.md
VIEWESMART Nov 25, 2024
dead5c0
Update Board_Instructions.md
VIEWESMART Nov 25, 2024
c4b5a82
Add a touch with model number CHSC6540
VIEWESMART Nov 25, 2024
d1357c5
Merge branch 'master' of https://github.com/VIEWESMART/ESP32_Display_…
VIEWESMART Nov 25, 2024
9ecb6e3
update examples
VIEWESMART Nov 25, 2024
5b7e95e
Update Board_Instructions.md
VIEWESMART Nov 26, 2024
f0e0370
Update Board_Instructions.md
VIEWESMART Nov 26, 2024
7020370
Update Board_Instructions.md
VIEWESMART Nov 28, 2024
88f9171
Update ESP_PanelBoard.h
VIEWESMART Nov 28, 2024
e0c5596
Update ESP_Panel_Board_Supported.h
VIEWESMART Nov 28, 2024
8a06ec6
Update Porting.ino
VIEWESMART Nov 28, 2024
4953247
Update Rotation.ino
VIEWESMART Nov 28, 2024
bd161a7
Update PanelTest.ino
VIEWESMART Nov 28, 2024
77bbd27
Update app.cpp
VIEWESMART Nov 28, 2024
e2c4b0e
Update Porting.ino
VIEWESMART Nov 28, 2024
139f90b
Update WiFiClock.ino
VIEWESMART Nov 28, 2024
f9960fc
Update README.md
VIEWESMART Nov 28, 2024
4ef0503
Update README.md
VIEWESMART Nov 28, 2024
d7d7a69
Update README_CN.md
VIEWESMART Nov 28, 2024
6d9fd60
Modify the configuration file
VIEWESMART Nov 28, 2024
0d21e96
Merge branch 'esp-arduino-libs:master' into master
VIEWESMART Dec 24, 2024
5772d1c
Update FAQ.md
VIEWESMART Dec 25, 2024
e2f6b46
Update FAQ.md
VIEWESMART Dec 25, 2024
cffaac5
Update FAQ.md
VIEWESMART Dec 25, 2024
4ea0418
Merge branch 'esp-arduino-libs:master' into master
VIEWESMART Jan 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions ESP_Panel_Board_Supported.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,43 @@
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_7
// #define BOARD_WAVESHARE_ESP32_P4_NANO

/*
* VIEWE Supported Boards (https://viewedisplay.com/):
*
* - BOARD_UEDX24320028E_WB_A_2_4:https://viewedisplay.com/product/esp32-2-4-inch-240x320-rgb-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/
* - BOARD_UEDX24320028E_WB_A_2_8:https://viewedisplay.com/product/esp32-2-8-inch-240x320-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/
* - BOARD_UEDX24320028E_WB_A_3_5_240_320:https://viewedisplay.com/product/esp32-3-5-inch-240x320-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/
* - BOARD_UEDX24320028E_WB_A_3_5_320_480:https://github.com/VIEWESMART/Product-Specification-and-Schematic/blob/main/ESP32/3.5inch/320480/UEDX32480035E-WB-A%20SPEC.pdf
* - BOARD_UEDX48480040E_WB_A_4_0:https://viewedisplay.com/product/esp32-4-inch-tft-display-touch-screen-arduino-lvgl/
* - BOARD_UEDX80480043E_WB_A_4_3_800_480:https://viewedisplay.com/product/esp32-4-3-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl/
* - BOARD_UEDX80480043E_WB_A_4_3_480_272:https://github.com/VIEWESMART/Product-Specification-and-Schematic/blob/main/ESP32/4.3inch/Low-Resolution_480272/UEDX48270043E-WB-A%20SPEC.pdf
* - BOARD_UEDX80480050E_WB_A_5_0:https://viewedisplay.com/product/esp32-5-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl/
* - BOARD_UEDX80480070E_WB_A_7_0:https://viewedisplay.com/product/esp32-7-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl-uart/
*
*/

// #define BOARD_UEDX24320028E_WB_A_2_4
// #define BOARD_UEDX24320028E_WB_A_2_8
// #define BOARD_UEDX24320028E_WB_A_3_5_240_320 //The resolution is 240*320
// #define BOARD_UEDX24320028E_WB_A_3_5_320_480 //The resolution is 320*480
// #define BOARD_UEDX48480040E_WB_A_4_0
// #define BOARD_UEDX80480043E_WB_A_4_3_800_480 //The resolution is 800*480
// #define BOARD_UEDX80480043E_WB_A_4_3_480_272 //The resolution is 480*272
// #define BOARD_UEDX80480050E_WB_A_5_0
// #define BOARD_UEDX80480070E_WB_A_7_0

/*
The following products control IM through software
*/
#if defined(BOARD_UEDX24320028E_WB_A_2_4) || \
defined(BOARD_UEDX24320028E_WB_A_2_8) || \
defined(BOARD_UEDX24320028E_WB_A_3_5_240_320) || \
defined(BOARD_UEDX24320028E_WB_A_3_5_320_480)
#define IM
#define IM0 47
#define IM1 48
#endif

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////// File Version ///////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ESP32_Display_Panel integrates multiple display-related driver components from t

The functional block diagram of ESP32_Display_Panel is shown below and includes the following features:

- Supports a variety of **Espressif** official and third-party development boards, including **M5Stack**, **Elecrow**, **Waveshare**, and others.
- Supports a variety of **Espressif** official and third-party development boards, including **M5Stack**, **Elecrow**, **Waveshare**,**VIEWE** and others.
- Supports **custom development board** adaptation.
- Supports a variety of device drivers, including interface **Bus**, **LCD**, **Touch**, **Backlight** and **IO Expander**.
- Supports dynamic driver configuration, such as enabling debug logs.
Expand All @@ -41,6 +41,7 @@ Below is the list of [Supported Development Boards](docs/Board_Instructions.md):
| [M5Stack](docs/Board_Instructions.md#m5stack) | M5STACK-M5CORE2, M5STACK-M5DIAL, M5STACK-M5CORES3 |
| [Jingcai](docs/Board_Instructions.md#shenzhen-jingcai-intelligent) | ESP32-4848S040C_I_Y_3 |
| [Waveshare](docs/Board_Instructions.md#waveshare) | ESP32-S3-Touch-LCD-1.85, ESP32-S3-Touch-LCD-2.1, ESP32-S3-Touch-LCD-4.3, ESP32-S3-Touch-LCD-4.3B, ESP32-S3-Touch-LCD-5, ESP32-S3-Touch-LCD-5B, ESP32-S3-Touch-LCD-7, ESP32-P4-NANO |
| [VIEWE](docs/Board_Instructions.md#viewe) | UEDX24320028E-WB-A-2.4, UEDX24320028E-WB-A-2.8, UEDX24320028E-WB-A-3.5-240x320, UEDX24320028E-WB-A-3.5-320x480, DX48480040E-WB-A, UEDX80480043E-WB-A-4.3-800x480, UEDX80480043E-WB-A-4.3-480x272, UEDX80480050E-WB-A, UEDX80480070E-WB-A|

Developers and manufacturers are welcome to contribute PRs to add more boards. For details, please refer to the [Board Contribution Guide](./docs/Board_Contribution_Guide.md).

Expand Down Expand Up @@ -69,6 +70,7 @@ Below is the list of [Supported Touch Controllers](docs/Touch_Controllers.md):
| Parade | TT21100 |
| Sitronix | ST7123 |
| Xptek | XPT2046 |
|Chipsemicorp | CHSC6540 |

## FAQ

Expand Down
4 changes: 3 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ESP32_Display_Panel 内部集成了多个[乐鑫组件库](https://components.es

ESP32_Display_Panel 的功能框图如下所示,主要包含以下特性:

- 支持多种 **Espressif** 官方及第三方开发板,包括 **M5Stack**、**Elecrow**、**Waveshare** 等。
- 支持多种 **Espressif** 官方及第三方开发板,包括 **M5Stack**、**Elecrow**、**Waveshare**、**VIEWE** 等。
- 支持适配 **自定义的开发板**。
- 支持多种类型的设备驱动,包括 **接口总线**、**LCD**、**触摸**、**背光** 和 **IO 扩展**。
- 支持动态配置驱动,如开启调试 LOG 等。
Expand All @@ -41,6 +41,7 @@ ESP32_Display_Panel 的功能框图如下所示,主要包含以下特性:
| [Elecrow](docs/Board_Instructions.md#elecrow) | CrowPanel 7.0" |
| [Jingcai](docs/Board_Instructions.md#shenzhen-jingcai-intelligent) | ESP32-4848S040C_I_Y_3 |
| [Waveshare](docs/Board_Instructions.md#waveshare) | ESP32-S3-Touch-LCD-1.85, ESP32-S3-Touch-LCD-2.1, ESP32-S3-Touch-LCD-4.3, ESP32-S3-Touch-LCD-4.3B, ESP32-S3-Touch-LCD-5, ESP32-S3-Touch-LCD-5B, ESP32-S3-Touch-LCD-7, ESP32-P4-NANO |
| [VIEWE](docs/Board_Instructions.md#viewe) | UEDX24320028E-WB-A-2.4, UEDX24320028E-WB-A-2.8, UEDX24320028E-WB-A-3.5-240x320, UEDX24320028E-WB-A-3.5-320x480, DX48480040E-WB-A, UEDX80480043E-WB-A-4.3-800x480, UEDX80480043E-WB-A-4.3-480x272, UEDX80480050E-WB-A, UEDX80480070E-WB-A|

欢迎开发者和厂商贡献 PR 来添加更多的开发板,详细说明请参考 [`开发板贡献指南`](./docs/Board_Contribution_Guide_CN.md)。

Expand Down Expand Up @@ -69,6 +70,7 @@ ESP32_Display_Panel 的功能框图如下所示,主要包含以下特性:
| Parade | TT21100 |
| Sitronix | ST7123 |
| Xptek | XPT2046 |
|Chipsemicorp | CHSC6540 |

## 常见问题解答

Expand Down
23 changes: 23 additions & 0 deletions docs/Board_Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@
| <img src="https://www.waveshare.com/media/catalog/product/cache/1/image/800x800/9df78eab33525d08d6e5fb8d27136e95/e/s/esp32-s3-touch-lcd-7-1.jpg" width="150"> | [ESP32-S3-Touch-LCD-7](https://www.waveshare.com/esp32-s3-touch-lcd-7.htm) | RGB | ST7262 | 800x480 | I2C | GT911 |
| <img src="https://www.waveshare.com/media/catalog/product/cache/1/image/800x800/9df78eab33525d08d6e5fb8d27136e95/e/s/esp32-p4-nano-1.jpg" width="150"> | [ESP32-P4-NANO](https://www.waveshare.com/esp32-p4-nano.htm) | MIPI-DSI | JD9365 | 800x1280 | I2C | GT9271 (GT911-like) |

## [VIEWE](https://viewedisplay.com/)

| **Picture** | **Name** | **LCD Bus** |**LCD Controller**| **LCD resolution** | **Touch Bus** | **Touch Controller** |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :--------------: | :----------------: | ------------------ | :-----------: | :------------------: |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/11/UEDX24320024E-WB-A.jpg" width="150"> | [UEDX24320028E-WB-A-2.4](https://viewedisplay.com/product/esp32-2-4-inch-240x320-rgb-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/) | SPI | GC9307(like GC9A01) | 240x320 | I2C | CHSC6540 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/11/UEDX24320028E-WB-A.jpg" width="150"> | [UEDX24320028E-WB-A-2.8](https://viewedisplay.com/product/esp32-2-8-inch-240x320-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/) | SPI | GC9307(like GC9A01) | 240x320 | I2C | CHSC6540 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/11/UEDX24320035E-WB-A-1.jpg" width="150"> | [UEDX24320028E-WB-A-3.5-240x320](https://viewedisplay.com/product/esp32-3-5-inch-240x320-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/) | SPI | GC9307(like GC9A01) | 240x320 | I2C | CHSC6540 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/11/UEDX32480035E-WB-A.jpg" width="150"> | [UEDX24320028E-WB-A-3.5-320x480](https://viewedisplay.com/product/esp32-3-5-inch-320x4-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/) | SPI | ST7365P(like ST7789) | 320x480 | I2C | CHSC6540 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/07/DX48480040E-WB-A-%E6%AD%A3.jpg" width="150"> | [UEDX48480040E-WB-A](https://viewedisplay.com/product/esp32-4-inch-tft-display-touch-screen-arduino-lvgl/) | 3-wire SPI + RGB | GC9503 | 480x480 | I2C | FT6336U(like FT5x06) |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/07/UEDX80480043E-13.jpg" width="150"> | [UEDX80480043E-WB-A-800x480](https://viewedisplay.com/product/esp32-4-3-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl/) | RGB | ST7262 | 800x480 | I2C | GT911 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/07/UEDX80480043E-13.jpg" width="150"> | [UEDX80480043E-WB-A-480x272](https://viewedisplay.com/product/esp32-4-3-inch-480x272-rgb-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/) | RGB | ST7262 | 480x272 | I2C | GT911 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/06/DX80480050E-aa.jpg" width="150"> | [UEDX80480050E-WB-A](https://viewedisplay.com/product/esp32-5-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl/) | RGB | ST7262E43-G4(like ST7262) | 800x480 | I2C | GT911 |
| <img src="https://viewedisplay.com/wp-content/uploads/2024/08/DX80480070E-a2.jpg" width="150"> | [UEDX80480070E-WB-A](https://viewedisplay.com/product/esp32-7-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl-uart/) | RGB | EK9716BD3+EK73002AB2(like ST7262) | 800x480 | I2C | GT911 |

## Recommended Configurations in the Arduino IDE

Below are recommended configurations for developing GUI applications on different development boards. These settings can be adjusted according to specific requirements, and users can navigate to the `Tools` menu in the Arduino IDE to configure the following settings.
Expand Down Expand Up @@ -82,6 +96,15 @@ Below are recommended configurations for developing GUI applications on differen
| Waveshare-ESP32-S3-Touch-LCD-5B | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| Waveshare-ESP32-S3-Touch-LCD-7 | ESP32S3 Dev Module | OPI | QIO 80MHz | 8MB | Disabled | 8M with spiffs |
| Waveshare-ESP32-P4-NANO | ESP32P4 Dev Module | Enabled | QIO | 16MB | Disabled | 16M Flash (3MB) |
| UEDX24320028E-WB-A-2.4 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX24320028E-WB-A-2.8 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX24320028E-WB-A-3.5-240x320 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX24320028E-WB-A-3.5-320x480 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX48480040E-WB-A | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX80480043E-WB-A-800x480 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX80480043E-WB-A-480x272 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX80480050E-WB-A | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |
| UEDX80480070E-WB-A | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | 16M Flash (3MB) |

**Notes:**

Expand Down
71 changes: 71 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [Where are the installation directory for arduino-esp32 and the SDK located?](#where-are-the-installation-directory-for-arduino-esp32-and-the-sdk-located)
- [How to fix screen drift issue when driving RGB LCD with ESP32-S3?](#how-to-fix-screen-drift-issue-when-driving-rgb-lcd-with-esp32-s3)
- [How to Use ESP32\_Display\_Panel on PlatformIO?](#how-to-use-esp32_display_panel-on-platformio)
- [How to add an LVGL library and how to configure?](#How-to-add-an-LVGL-library-and-how-to-configure)

## Where is the directory for Arduino libraries?

Expand Down Expand Up @@ -82,3 +83,73 @@ When encountering screen drift issue when driving RGB LCD with ESP32-S3, you can
## How to Use ESP32_Display_Panel on PlatformIO?

You can refer to the example [PlatformIO](../examples/PlatformIO/) to use the ESP32_Display_Panel library in PlatformIO. By default, it is suitable for the **ESP32-S3-LCD-EV-Board** and **ESP32-S3-LCD-EV-Board-2** development boards. You need to modify the [boards/ESP-LCD.json](../examples/PlatformIO/boards/ESP-LCD.json) file according to the actual situation.

## How to add an LVGL library and how to configure?
* How to use it normally

1.Download the LVGL library in Arduino, it is best to choose the `V8.4.0` version.

2.Find the downloaded LVGL library, copy and paste the `lv_conf_template.h` file into the same directory as the LVGL library.

3.Change the `lv_conf_template.h` file name to `lv_conf.h`.

4.Open `lv_conf.h` to modify the macro definition and save: `#if 0`--> `#if 1`
```c
...
/* clang-format off */
#if 1 /*Set it to "1" to enable content*/

#ifndef LV_CONF_H
#define LV_CONF_H

#include <stdint.h>
...
```
* How to use the examples and demos in lvgl

please open the corresponding macros
```c
...
/*==================
* EXAMPLES
*==================*/

/*Enable the examples to be built with the library*/
#define LV_BUILD_EXAMPLES 1

/*===================
* DEMO USAGE
====================*/

/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
#define LV_USE_DEMO_WIDGETS 1
#if LV_USE_DEMO_WIDGETS
#define LV_DEMO_WIDGETS_SLIDESHOW 0
#endif

/*Demonstrate the usage of encoder and keyboard*/
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0

/*Benchmark your system*/
#define LV_USE_DEMO_BENCHMARK 0
#if LV_USE_DEMO_BENCHMARK
/*Use RGB565A8 images with 16 bit color depth instead of ARGB8565*/
#define LV_DEMO_BENCHMARK_RGB565A8 0
#endif

/*Stress test for LVGL*/
#define LV_USE_DEMO_STRESS 0

/*Music player demo*/
#define LV_USE_DEMO_MUSIC 0
#if LV_USE_DEMO_MUSIC
#define LV_DEMO_MUSIC_SQUARE 0
#define LV_DEMO_MUSIC_LANDSCAPE 0
#define LV_DEMO_MUSIC_ROUND 0
#define LV_DEMO_MUSIC_LARGE 0
#define LV_DEMO_MUSIC_AUTO_PLAY 0
#endif

...
```

37 changes: 37 additions & 0 deletions examples/LVGL/v8/Porting/ESP_Panel_Board_Supported.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,43 @@
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_7
// #define BOARD_WAVESHARE_ESP32_P4_NANO

/*
* VIEWE Supported Boards (https://viewedisplay.com/):
*
* - BOARD_UEDX24320028E_WB_A_2_4:https://viewedisplay.com/product/esp32-2-4-inch-240x320-rgb-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/
* - BOARD_UEDX24320028E_WB_A_2_8:https://viewedisplay.com/product/esp32-2-8-inch-240x320-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/
* - BOARD_UEDX24320028E_WB_A_3_5_240_320:https://viewedisplay.com/product/esp32-3-5-inch-240x320-mcu-ips-tft-display-touch-screen-arduino-lvgl-wifi-ble-uart-smart-module/
* - BOARD_UEDX24320028E_WB_A_3_5_320_480:https://github.com/VIEWESMART/Product-Specification-and-Schematic/blob/main/ESP32/3.5inch/320480/UEDX32480035E-WB-A%20SPEC.pdf
* - BOARD_UEDX48480040E_WB_A_4_0:https://viewedisplay.com/product/esp32-4-inch-tft-display-touch-screen-arduino-lvgl/
* - BOARD_UEDX80480043E_WB_A_4_3_800_480:https://viewedisplay.com/product/esp32-4-3-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl/
* - BOARD_UEDX80480043E_WB_A_4_3_480_272:https://github.com/VIEWESMART/Product-Specification-and-Schematic/blob/main/ESP32/4.3inch/Low-Resolution_480272/UEDX48270043E-WB-A%20SPEC.pdf
* - BOARD_UEDX80480050E_WB_A_5_0:https://viewedisplay.com/product/esp32-5-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl/
* - BOARD_UEDX80480070E_WB_A_7_0:https://viewedisplay.com/product/esp32-7-inch-800x480-rgb-ips-tft-display-touch-screen-arduino-lvgl-uart/
*
*/

// #define BOARD_UEDX24320028E_WB_A_2_4
// #define BOARD_UEDX24320028E_WB_A_2_8
// #define BOARD_UEDX24320028E_WB_A_3_5_240_320 //The resolution is 240*320
// #define BOARD_UEDX24320028E_WB_A_3_5_320_480 //The resolution is 320*480
// #define BOARD_UEDX48480040E_WB_A_4_0
// #define BOARD_UEDX80480043E_WB_A_4_3_800_480 //The resolution is 800*480
// #define BOARD_UEDX80480043E_WB_A_4_3_480_272 //The resolution is 480*272
// #define BOARD_UEDX80480050E_WB_A_5_0
// #define BOARD_UEDX80480070E_WB_A_7_0

/*
The following products control IM through software
*/
#if defined(BOARD_UEDX24320028E_WB_A_2_4) || \
defined(BOARD_UEDX24320028E_WB_A_2_8) || \
defined(BOARD_UEDX24320028E_WB_A_3_5_240_320) || \
defined(BOARD_UEDX24320028E_WB_A_3_5_320_480)
#define IM
#define IM0 47
#define IM1 48
#endif

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////// File Version ///////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
12 changes: 12 additions & 0 deletions examples/LVGL/v8/Porting/Porting.ino
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ void setup()
Serial.println(title + " start");

Serial.println("Initialize panel device");
#ifdef IM
pinMode(IM1, OUTPUT);
digitalWrite(IM1, HIGH);
#ifdef BOARD_UEDX24320028E_WB_A_3_5_320_480
pinMode(IM0, OUTPUT);
digitalWrite(IM0, HIGH);
#endif
#ifndef BOARD_UEDX24320028E_WB_A_3_5_320_480
pinMode(IM0, OUTPUT);
digitalWrite(IM0, LOW);
#endif
#endif
ESP_Panel *panel = new ESP_Panel();
panel->init();
#if LVGL_PORT_AVOID_TEAR
Expand Down
Loading