Skip to content

Commit 627214d

Browse files
committed
Merge branch 'bugfix/fix_version_check' into 'master'
fix(version): fix minor number check Closes #149 See merge request ae_group/ESP32_Display_Panel!8
2 parents 99b2103 + 5153fe2 commit 627214d

File tree

6 files changed

+27
-12
lines changed

6 files changed

+27
-12
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# ChangeLog
22

3+
## v0.2.3 - 2025-01-09
4+
5+
### Enhancements:
6+
7+
* feat(examples): update PlatformIO build_flags
8+
9+
### Bugfixes:
10+
11+
* fix(touch): fix GT911 build warning
12+
* fix(version): fix minor number check @arduinomnomnom (#148)
13+
314
## v0.2.2 - 2025-01-09
415

516
### Bugfixes:

examples/PlatformIO/platformio.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ platform_packages =
88
upload_speed = 921600
99
monitor_speed = 115200
1010
build_flags =
11-
-DBOARD_HAS_PSRAM
11+
; Arduino related:
12+
-DBOARD_HAS_PSRAM ; Enable PSRAM
13+
; -DARDUINO_USB_CDC_ON_BOOT=0 ; If using UART port
14+
-DARDUINO_USB_CDC_ON_BOOT=1 ; If using USB port
15+
-DCORE_DEBUG_LEVEL=1 ; Set to `5` for full debug output, `0` for none
16+
; LVGL related:
1217
-DLV_CONF_INCLUDE_SIMPLE
13-
-DDISABLE_ALL_LIBRARY_WARNINGS
14-
-DARDUINO_USB_CDC_ON_BOOT=1
15-
-DCORE_DEBUG_LEVEL=1
1618
-DLV_LVGL_H_INCLUDE_SIMPLE
19+
; Others:
20+
; -DDISABLE_ALL_LIBRARY_WARNINGS ; Disable all library warnings
1721
-I src
1822
lib_deps =
1923
https://github.com/esp-arduino-libs/ESP32_Display_Panel.git

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.2.2"
1+
version: "0.2.3"
22
description: ESP32_Display_Panel is a library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.
33
url: https://github.com/esp-arduino-libs/ESP32_Display_Panel
44
repository: https://github.com/esp-arduino-libs/ESP32_Display_Panel.git

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.2.2
2+
version=0.2.3
33
author=espressif
44
maintainer=espressif
55
sentence=ESP32_Display_Panel is a library designed for ESP SoCs to drive display panels and facilitate rapid GUI development.

src/ESP_PanelVersions.h

Lines changed: 5 additions & 5 deletions
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 2
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
@@ -49,7 +49,7 @@
4949
#error "The file `ESP_Panel_Conf.h` version is not compatible. Please update it with the file from the library"
5050
#elif ESP_PANEL_CONF_FILE_VERSION_MINOR < ESP_PANEL_CONF_VERSION_MINOR
5151
#warning "The file `ESP_Panel_Conf.h` version is outdated. Some new configurations are missing"
52-
#elif ESP_PANEL_CONF_FILE_VERSION_PATCH > ESP_PANEL_VERSION_PATCH
52+
#elif ESP_PANEL_CONF_FILE_VERSION_MINOR > ESP_PANEL_CONF_VERSION_MINOR
5353
#warning "The file `ESP_Panel_Conf.h` version is newer than the library. Some new configurations are not supported"
5454
#endif /* ESP_PANEL_CONF_INCLUDE_INSIDE */
5555
#endif /* ESP_PANEL_CONF_FILE_SKIP */
@@ -91,11 +91,11 @@
9191
#if ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR != ESP_PANEL_BOARD_CUSTOM_VERSION_MAJOR
9292
#error "The file `ESP_Panel_Board_Custom.h` version is not compatible. Please update it with the file from the library"
9393
#endif
94-
// Only check the other versions if not skip the file
95-
#if !defined(ESP_PANEL_BOARD_FILE_SKIP)
94+
// Only check the other versions if not skip the file and not use the supported board
95+
#if !defined(ESP_PANEL_BOARD_FILE_SKIP) && !ESP_PANEL_USE_SUPPORTED_BOARD
9696
#if ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR < ESP_PANEL_BOARD_CUSTOM_VERSION_MINOR
9797
#warning "The file `ESP_Panel_Board_Custom.h` version is outdated. Some new configurations are missing"
98-
#elif ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR > ESP_PANEL_BOARD_CUSTOM_VERSION_PATCH
98+
#elif ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR > ESP_PANEL_BOARD_CUSTOM_VERSION_MINOR
9999
#warning "The file `ESP_Panel_Board_Custom.h` version is newer than the library. Some new configurations are not supported"
100100
#endif
101101
#endif

src/touch/GT911.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool ESP_PanelTouch_GT911::begin(void)
4343

4444
ESP_PanelBus_I2C *i2c_bus = static_cast<ESP_PanelBus_I2C *>(bus);
4545
esp_lcd_touch_io_gt911_config_t tp_gt911_config = {
46-
.dev_addr = i2c_bus->getI2cAddress(),
46+
.dev_addr = static_cast<uint8_t>(i2c_bus->getI2cAddress()),
4747
};
4848
if (config.driver_data == NULL) {
4949
ESP_LOGD(TAG, "Use default GT911 driver data(address: 0x%02x)", tp_gt911_config.dev_addr);

0 commit comments

Comments
 (0)