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 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
37 changes: 37 additions & 0 deletions examples/LVGL/v8/Rotation/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/Rotation/Rotation.ino
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,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