Skip to content

Commit

Permalink
Fix(esp_lcd_touch_cst816s): Missing field initializers under C++ (BSP…
Browse files Browse the repository at this point in the history
…-609) (#470)

* Fix CST816S field order and missing initializers

* Bump CST816S version due to changes in 1c37266
  • Loading branch information
tajnymag authored Jan 7, 2025
1 parent a9620d5 commit 91ad61a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.0.3~1"
version: "1.0.4"
description: ESP LCD Touch CST816S - touch controller CST816S
url: https://github.com/espressif/esp-bsp/tree/master/components/lcd_touch/esp_lcd_touch_cst816s
dependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -41,15 +41,20 @@ esp_err_t esp_lcd_touch_new_i2c_cst816s(const esp_lcd_panel_io_handle_t io, cons
*
*/
#define ESP_LCD_TOUCH_IO_I2C_CST816S_CONFIG() \
{ \
{ \
.dev_addr = ESP_LCD_TOUCH_IO_I2C_CST816S_ADDRESS, \
.control_phase_bytes = 1, \
.dc_bit_offset = 0, \
.lcd_cmd_bits = 8, \
.flags = \
{ \
.disable_control_phase = 1, \
} \
.on_color_trans_done = 0, \
.user_ctx = 0, \
.control_phase_bytes = 1, \
.dc_bit_offset = 0, \
.lcd_cmd_bits = 8, \
.lcd_param_bits = 0, \
.flags = \
{ \
.dc_low_on_data = 0, \
.disable_control_phase = 1, \
}, \
.scl_speed_hz = 0 \
}

#ifdef __cplusplus
Expand Down

0 comments on commit 91ad61a

Please sign in to comment.