Skip to content

Commit 1f8d12a

Browse files
lboueweb-flow
andauthored
feat(board): add support for Waveshare ESP32-S3-Touch-LCD-4.3 board by @lboue (#99)
* Waveshare ESP32-S3-Touch-LCD-4.3 board * Waveshare ESP32-S3-Touch-LCD-4.3 board * Update Board_Instructions.md * Update README.md * Update README_CN.md * Update Board_Instructions.md * Update library.properties * Update ESP_PanelVersions.h * BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3 * Update ESP32_S3_Touch_LCD_4.3.h * Update Board_Instructions.md * Update ESP32_S3_Touch_LCD_4.3.h The RGB interface is used without the 3-wire SPI interface * Update ESP32_S3_Touch_LCD_4.3.h * Update ESP32_S3_Touch_LCD_4.3.h * Update ESP32_S3_Touch_LCD_4.3.h * Fix pre-commit CI check * ChangeLog v0.1.6 * Update ESP_PanelBoard.h * Bump minor version for `ESP_Panel_Board_Custom.h` & `ESP_Panel_Board_Supported.h` --------- Co-authored-by: Ludovic BOUÉ <noreply@github.com>
1 parent 13bbe76 commit 1f8d12a

14 files changed

+350
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Enhancements:
66

77
* feat(board): add support for Fitipower EK9716B LCD controller for CrowPanel 7.0" board by @lboue (#78)
8+
* feat(board): add support for Waveshare ESP32-S3-Touch-LCD-4.3 by @lboue (#99)
89

910
### Bugfixes:
1011

ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Below is a list of [supported development boards](docs/Board_Instructions.md):
6565
| [Espressif](docs/Board_Instructions.md#espressif) | ESP32-C3-LCDkit, ESP32-S3-BOX, ESP32-S3-BOX-3, ESP32-S3-BOX-3B, ESP32-S3-BOX-3(beta), ESP32-S3-BOX-Lite, ESP32-S3-EYE, ESP32-S3-Korvo-2, ESP32-S3-LCD-EV-Board, ESP32-S3-LCD-EV-Board-2, ESP32-S3-USB-OTG |
6666
| [M5Stack](docs/Board_Instructions.md#m5stack) | M5STACK-M5CORE2, M5STACK-M5DIAL, M5STACK-M5CORES3 |
6767
| [Jingcai](docs/Board_Instructions.md#shenzhen-jingcai-intelligent) | ESP32-4848S040C_I_Y_3 |
68+
| [Waveshare](docs/Board_Instructions.md#waveshare) | ESP32-S3-Touch-LCD-4.3 |
6869

6970
Developers and manufacturers are welcomed to contribute PRs to add more development boards. For detailed instructions, please refer to the [`Board Development Guide`](./docs/Board_Contribution_Guide.md).
7071

README_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ ESP32_Display_Panel 的功能框图如下所示,主要包含以下特性:
6565
| [Espressif](docs/Board_Instructions.md#espressif) | ESP32-C3-LCDkit, ESP32-S3-BOX, ESP32-S3-BOX-3, ESP32-S3-BOX-3B, ESP32-S3-BOX-3(beta), ESP32-S3-BOX-Lite, ESP32-S3-EYE, ESP32-S3-Korvo-2, ESP32-S3-LCD-EV-Board, ESP32-S3-LCD-EV-Board-2, ESP32-S3-USB-OTG |
6666
| [M5Stack](docs/Board_Instructions.md#m5stack) | M5STACK-M5CORE2, M5STACK-M5DIAL, M5STACK-M5CORES3 |
6767
| [Jingcai](docs/Board_Instructions.md#shenzhen-jingcai-intelligent) | ESP32-4848S040C_I_Y_3 |
68+
| [Waveshare](docs/Board_Instructions.md#waveshare) | ESP32-S3-Touch-LCD-4.3 |
6869

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

docs/Board_Instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :--------------: | :----------------: | :----------------: | :-----------: | :------------------: |
3939
| [<img src="https://www.displaysmodule.com/photo/ps162171631-experience_the_power_of_the_esp32_display_module_sku_esp32_4848s040c_i_y_3.jpg" width="150">](https://www.displaysmodule.com/sale-41828962-experience-the-power-of-the-esp32-display-module-sku-esp32-4848s040c-i-y-3.html) | [ESP32-4848S040C_I_Y_3](http://pan.jczn1688.com/directlink/1/ESP32%20module/4.0inch_ESP32-4848S040.zip) | 3-wire SPI + RGB | ST7701 | 480x480 | I2C | GT911 |
4040

41+
## [Waveshare](https://www.waveshare.com/)
42+
43+
| **Picture** | **Name** | **LCD Bus** | **LCD Controller** | **LCD resolution** | **Touch Bus** | **Touch Controller** |
44+
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :--------------: | :----------------: | ------------------ | :-----------: | :------------------: |
45+
| <img src="https://www.waveshare.com/media/catalog/product/cache/1/small_image/171x171/9df78eab33525d08d6e5fb8d27136e95/e/s/esp32-s3-touch-lcd-4.3-1.jpg" width="150"> | [ESP32-S3-Touch-LCD-4.3](https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm) | RGB | ST7262 | 800x480 | I2C | GT911 |
46+
4147
## Recommended Configurations in the Arduino IDE
4248

4349
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.
@@ -59,6 +65,7 @@ Below are recommended configurations for developing GUI applications on differen
5965
| M5STACK-M5CORES3 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Enabled | Default 4MB with spiffs |
6066
| ESP32-4848S040C_I_Y_3 | ESP32S3 Dev Module | OPI | QIO 80MHz | 16MB | Disabled | 16M Flash (3MB) |
6167
| ElecrowCrowPanel 7.0" | ESP32S3 Dev Module | OPI | QIO 80MHz | 4MB | Disabled | Huge App (3MB) |
68+
| Waveshare-ESP32-S3-Touch-LCD-4.3 | ESP32S3 Dev Module | OPI | QIO 80MHz | 8MB | Disabled | 8M with spiffs |
6269

6370
**Notes:**
6471

examples/LVGL/v8/Porting/ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

examples/LVGL/v8/Rotation/ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

examples/Panel/PanelTest/ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

examples/PlatformIO/src/ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

examples/SquareLine/v8/Porting/ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

examples/SquareLine/v8/WiFiClock/ESP_Panel_Board_Supported.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
// #define BOARD_ESP32_4848S040C_I_Y_3
7676

77+
/*
78+
* Waveshare Supported Boards (https://www.waveshare.com/):
79+
*
80+
* - ESP32_S3_Touch_LCD_4_3:
81+
* - https://www.waveshare.com/esp32-s3-touch-lcd-4.3.htm
82+
*
83+
*/
84+
// #define BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
85+
7786
/**
7887
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
7988
* the current version of `ESP_Panel_Board_Supported.h` in the library. The detailed rules are as follows:

src/ESP_PanelVersions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
!defined(ESP_PANEL_BOARD_SUPPORTED_FILE_VERSION_MINOR) && \
5757
!defined(ESP_PANEL_BOARD_SUPPORTED_FILE_VERSION_PATCH)
5858
#define ESP_PANEL_BOARD_SUPPORTED_FILE_VERSION_MAJOR 0
59-
#define ESP_PANEL_BOARD_SUPPORTED_FILE_VERSION_MINOR 1
59+
#define ESP_PANEL_BOARD_SUPPORTED_FILE_VERSION_MINOR 2
6060
#define ESP_PANEL_BOARD_SUPPORTED_FILE_VERSION_PATCH 0
6161
#endif
6262
// Check if the current configuration file version is compatible with the library version

src/board/ESP_PanelBoard.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
defined(BOARD_ESP32_S3_BOX_3_BETA) + defined(BOARD_ESP32_S3_BOX_LITE) + defined(BOARD_ESP32_S3_EYE) + \
1414
defined(BOARD_ESP32_S3_KORVO_2) + defined(BOARD_ESP32_S3_LCD_EV_BOARD) + \
1515
defined(BOARD_ESP32_S3_LCD_EV_BOARD_V1_5) + defined(BOARD_ESP32_S3_LCD_EV_BOARD_2) + \
16-
defined(BOARD_ESP32_S3_LCD_EV_BOARD_2_V1_5) + defined(BOARD_ESP32_S3_USB_OTG) + \
16+
defined(BOARD_ESP32_S3_LCD_EV_BOARD_2_V1_5) + defined(BOARD_ESP32_S3_USB_OTG) + defined(BOARD_ELECROW_CROWPANEL_7_0) \
1717
defined(BOARD_M5STACK_M5CORE2) + defined(BOARD_M5STACK_M5DIAL) + defined(BOARD_M5STACK_M5CORES3) + \
18-
defined(BOARD_ESP32_4848S040C_I_Y_3) \
18+
defined(BOARD_ESP32_4848S040C_I_Y_3) + defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3) \
1919
> 1
2020
#error "Multiple boards enabled! Please check file `ESP_Panel_Board_Supported.h` and make sure only one board is enabled."
2121
#endif
@@ -59,6 +59,9 @@
5959
/* Jingcai */
6060
#elif defined(BOARD_ESP32_4848S040C_I_Y_3) || CONFIG_BOARD_ESP32_4848S040C_I_Y_3
6161
#include "board/jingcai/ESP32_4848S040C_I_Y_3.h"
62+
/* Waveshare */
63+
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3) || CONFIG_BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3
64+
#include "board/waveshare/ESP32_S3_Touch_LCD_4.3.h"
6265
#else
6366
#error "Unkonw board selected! Please check file `ESP_Panel_Board_Supported.h` and make sure only one board is enabled."
6467
#endif

0 commit comments

Comments
 (0)