You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Configuring Supported Development Boards](#configuring-supported-development-boards)
34
36
-[Configuring LVGL](#configuring-lvgl)
@@ -38,6 +40,7 @@ ESP32_Display_Panel encapsulates various components from the [Espressif Componen
38
40
-[How to Install ESP32\_Display\_Panel in Arduino IDE?](#how-to-install-esp32_display_panel-in-arduino-ide)
39
41
-[Where are the installation directory for arduino-esp32 and the SDK located?](#where-are-the-installation-directory-for-arduino-esp32-and-the-sdk-located)
40
42
-[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)
43
+
-[How to Use ESP32\_Display\_Panel on PlatformIO?](#how-to-use-esp32_display_panel-on-platformio)
41
44
42
45
## Overview
43
46
@@ -256,9 +259,13 @@ Here is a snippet of the modified `ESP_Panel_Board_Custom.h` file:
256
259
257
260
### Usage Examples
258
261
259
-
Below are some examples of using ESP32_Display_Panel. You can access them in the Arduino IDE by navigating to `File` > `Examples` > `ESP32_Display_Panel`. If you cannot find the `ESP32_Display_Panel` option, please check if the library has been installed correctly and ensure that an ESP development board is selected.
262
+
The following are some examples of using ESP32_Display_Panel on different development platforms.
260
263
261
-
#### LCD
264
+
#### Arduino IDE
265
+
266
+
You can access them in the Arduino IDE by navigating to `File` > `Examples` > `ESP32_Display_Panel`. If you cannot find the `ESP32_Display_Panel` option, please check if the library has been installed correctly and ensure that an ESP development board is selected.
267
+
268
+
##### LCD
262
269
263
270
The following examples demonstrate how to develop different interface and model LCDs using standalone drivers and test them by displaying color bars:
264
271
@@ -267,33 +274,37 @@ The following examples demonstrate how to develop different interface and model
267
274
*[Single RGB](examples/LCD/RGB/)
268
275
*[3-wire SPI + RGB](examples/LCD/3wireSPI_RGB/)
269
276
270
-
#### Touch
277
+
#####Touch
271
278
272
279
The following example demonstrates how to develop touch screens of different interfaces and models using standalone drivers and test them by printing touch point coordinates:
273
280
274
281
*[I2C](examples/Touch/I2C/)
275
282
*[SPI](examples/Touch/SPI/)
276
283
277
-
#### Panel
284
+
#####Panel
278
285
279
286
The following example demonstrates how to develop built-in or custom development boards using the `ESP_Panel` driver:
280
287
281
288
*[Panel Test](examples/Panel/PanelTest/): This example tests by displaying color bars and printing touch point coordinates.
282
289
283
-
#### LVGL v8
290
+
#####LVGL v8
284
291
285
292
For configuring LVGL (v8.3.x), please refer to [here](#configuring-lvgl) for more detailed information.
286
293
287
294
*[Porting](examples/LVGL/v8/Porting/): This example demonstrates how to port LVGL (v8.3.x). And for RGB LCD, it can enable the avoid tearing fucntion.
288
295
*[Rotation](examples/LVGL/v8/Rotation/): This example demonstrates how to use LVGL to rotate the display.
289
296
290
-
#### SquareLine
297
+
#####SquareLine
291
298
292
299
To port the SquareLine project (v1.3.x), please refer to [here](#porting-squareline-project) for more detailed information.
293
300
294
301
-[Porting](examples/SquareLine/v8/Porting/): This example demonstrates how to port the SquareLine project.
295
302
-[WiFiClock](examples/SquareLine/v8/WiFiClock/): This example implements a simple Wi-Fi clock and can display weather information.
296
303
304
+
#### PlatformIO
305
+
306
+
-[PlatformIO](examples/PlatformIO/): This example demonstrates how to use ESP32_Display_Panel in PlatformIO. By default, it is suitable for the **ESP32-S3-LCD-EV-Board** and **ESP32-S3-LCD-EV-Board-2** development boards. Users need to modify the [boards/ESP-LCD.json](examples/PlatformIO/boards/ESP-LCD.json) file according to the actual situation.
307
+
297
308
## Other Relevant Instructions
298
309
299
310
### Configuring Supported Development Boards
@@ -446,3 +457,7 @@ When encountering screen drift issue when driving RGB LCD with ESP32-S3, you can
446
457
lcd_bus->begin();
447
458
...
448
459
```
460
+
461
+
### How to Use ESP32_Display_Panel on PlatformIO?
462
+
463
+
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.
The example is used to guide how to use this library in PlatformIO. It also demonstrates how to port LVGL (v8.3.x). And for RGB LCD, it can enable the avoid tearing fucntion.
4
+
5
+
It is by default suitable for **ESP32-S3-LCD-EV-Board** and **ESP32-S3-LCD-EV-Board-2** boards. Users should modify the [boards/ESP-LCD.json](boards/ESP-LCD.json) file as needed.
6
+
7
+
## How to Use
8
+
9
+
Follow the steps below to configure:
10
+
11
+
1. For **ESP32_Display_Panel**:
12
+
13
+
- Follow the [steps](../../README.md#configuring-drivers) to configure drivers if needed.
14
+
- If using a supported development board, follow the [steps](../../README.md#using-supported-development-boards) to configure it.
15
+
- If using a custom board, follow the [steps](../../README.md#using-custom-development-boards) to configure it.
16
+
17
+
2. For **lvgl**:
18
+
19
+
- Follow the [steps](../../README.md#configuring-lvgl) to add *lv_conf.h* file and change the configurations.
20
+
- Modify the macros in the [lvgl_port_v8.h](./lvgl_port_v8.h) file to configure the LVGL porting parameters.
21
+
22
+
3. Navigate to the `Tools` menu in the Arduino IDE to choose a ESP board and configure its parameters. For supported boards, please refter to [Configuring Supported Development Boards](../../README.md#configuring-supported-development-boards)
23
+
4. Verify and upload the example to your ESP board.
24
+
25
+
## Serial Output
26
+
27
+
```bash
28
+
...
29
+
LVGL porting example start
30
+
Initialize panel device
31
+
Initialize LVGL
32
+
Create UI
33
+
LVGL porting example end
34
+
IDLE loop
35
+
IDLE loop
36
+
...
37
+
```
38
+
39
+
## Troubleshooting
40
+
41
+
Please check the [FAQ](../../README.md#faq) first to see if the same question exists. If not, please create a [Github issue](https://github.com/esp-arduino-libs/ESP32_Display_Panel/issues). We will get back to you as soon as possible.
0 commit comments