Skip to content

Commit f75a878

Browse files
committed
feat(example): add docs for PlatformIO
1 parent e894e32 commit f75a878

File tree

6 files changed

+50
-20
lines changed

6 files changed

+50
-20
lines changed

examples/platformio/src/ESP_Panel_Board_Custom.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
* - CST816S
215215
* - FT5x06
216216
* - GT911, GT1151
217-
* - ST7123
217+
* - ST1633, ST7123
218218
* - TT21100
219219
* - XPT2046
220220
*/
@@ -362,7 +362,7 @@
362362
*/
363363
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 0
364364
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 1
365-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 0
365+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
366366

367367
#endif /* ESP_PANEL_USE_CUSTOM_BOARD */
368368

examples/platformio/src/ESP_Panel_Conf.h

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
1-
/**
2-
* Debug configurations
1+
/*
2+
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
33
*
4+
* SPDX-License-Identifier: Apache-2.0
45
*/
6+
7+
#pragma once
8+
9+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10+
///////////////////////////////////////////////// Debug Configurations /////////////////////////////////////////////////
11+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
512
/* Set to 1 if assert on error. Otherwise print error message */
613
#define ESP_PANEL_CHECK_RESULT_ASSERT (0) // 0/1
714

815
/* Set to 1 if print log message for debug */
916
#define ESP_PANEL_ENABLE_LOG (0) // 0/1
1017

11-
/**
12-
* Touch driver configurations
13-
*
14-
*/
18+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
19+
///////////////////////////////////////////// Touch Driver Configurations //////////////////////////////////////////////
20+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1521
/* Maximum point number */
16-
#define ESP_PANEL_TOUCH_MAX_POINTS (3)
17-
22+
#define ESP_PANEL_TOUCH_MAX_POINTS (5)
1823
/* Maximum button number */
1924
#define ESP_PANEL_TOUCH_MAX_BUTTONS (1)
2025

21-
/* Model configurations */
22-
// XPT2046
26+
/**
27+
* XPT2046 related
28+
*
29+
*/
2330
#define ESP_PANEL_TOUCH_XPT2046_Z_THRESHOLD (400) // Minimum Z pressure threshold
2431
/**
2532
* Enable Interrupt (PENIRQ) output, also called Full Power Mode.
@@ -50,3 +57,21 @@
5057
*
5158
*/
5259
#define ESP_PANEL_TOUCH_XPT2046_ENABLE_LOCKING (0) // 0/1
60+
61+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
62+
/////////////////////////////////////////////// File Version ///////////////////////////////////////////////////////////
63+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
64+
/**
65+
* Do not change the following versions, they are used to check if the configurations in this file are compatible with
66+
* the current version of `ESP_Panel_Board_Custom.h` in the library. The detailed rules are as follows:
67+
*
68+
* 1. If the major version is not consistent, then the configurations in this file are incompatible with the library
69+
* and must be replaced with the file from the library.
70+
* 2. If the minor version is not consistent, this file might be missing some new configurations, which will be set to
71+
* default values. It is recommended to replace it with the file from the library.
72+
* 3. Even if the patch version is not consistent, it will not affect normal functionality.
73+
*
74+
*/
75+
#define ESP_PANEL_CONF_FILE_VERSION_MAJOR 0
76+
#define ESP_PANEL_CONF_FILE_VERSION_MINOR 1
77+
#define ESP_PANEL_CONF_FILE_VERSION_PATCH 1

examples/platformio/src/app.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: CC0-1.0
5+
*/
16

27
#include <Arduino.h>
38
#include <ESP_Panel_Library.h>
@@ -67,4 +72,4 @@ void loop()
6772
{
6873
Serial.println("IDLE loop");
6974
delay(1000);
70-
}
75+
}

examples/platformio/src/lv_conf.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: CC0-1.0
5+
*/
16
/**
27
* @file lv_conf.h
38
* Configuration file for v8.3.3
@@ -757,8 +762,3 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
757762
#endif /*LV_CONF_H*/
758763

759764
#endif /*End of "Content enable"*/
760-
761-
762-
763-
764-

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32_Display_Panel
2-
version=0.1.2
2+
version=0.1.3
33
author=espressif
44
maintainer=espressif
55
sentence=ESP32_Display_Panel is an Arduino library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.

src/ESP_PanelVersions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/* Library Version */
1212
#define ESP_PANEL_VERSION_MAJOR 0
1313
#define ESP_PANEL_VERSION_MINOR 1
14-
#define ESP_PANEL_VERSION_PATCH 2
14+
#define ESP_PANEL_VERSION_PATCH 3
1515

1616
/* File `ESP_Panel_Conf.h` */
1717
#define ESP_PANEL_CONF_VERSION_MAJOR 0

0 commit comments

Comments
 (0)