|
1 |
| -/** |
2 |
| - * Debug configurations |
| 1 | +/* |
| 2 | + * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD |
3 | 3 | *
|
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
4 | 5 | */
|
| 6 | + |
| 7 | +#pragma once |
| 8 | + |
| 9 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 10 | +///////////////////////////////////////////////// Debug Configurations ///////////////////////////////////////////////// |
| 11 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
5 | 12 | /* Set to 1 if assert on error. Otherwise print error message */
|
6 | 13 | #define ESP_PANEL_CHECK_RESULT_ASSERT (0) // 0/1
|
7 | 14 |
|
8 | 15 | /* Set to 1 if print log message for debug */
|
9 | 16 | #define ESP_PANEL_ENABLE_LOG (0) // 0/1
|
10 | 17 |
|
11 |
| -/** |
12 |
| - * Touch driver configurations |
13 |
| - * |
14 |
| - */ |
| 18 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 19 | +///////////////////////////////////////////// Touch Driver Configurations ////////////////////////////////////////////// |
| 20 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
15 | 21 | /* Maximum point number */
|
16 |
| -#define ESP_PANEL_TOUCH_MAX_POINTS (3) |
17 |
| - |
| 22 | +#define ESP_PANEL_TOUCH_MAX_POINTS (5) |
18 | 23 | /* Maximum button number */
|
19 | 24 | #define ESP_PANEL_TOUCH_MAX_BUTTONS (1)
|
20 | 25 |
|
21 |
| -/* Model configurations */ |
22 |
| -// XPT2046 |
| 26 | +/** |
| 27 | + * XPT2046 related |
| 28 | + * |
| 29 | + */ |
23 | 30 | #define ESP_PANEL_TOUCH_XPT2046_Z_THRESHOLD (400) // Minimum Z pressure threshold
|
24 | 31 | /**
|
25 | 32 | * Enable Interrupt (PENIRQ) output, also called Full Power Mode.
|
|
50 | 57 | *
|
51 | 58 | */
|
52 | 59 | #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 |
0 commit comments