feat(lcd): add configurable timeout for lcd i2c panel

Closes https://github.com/espressif/esp-idf/issues/18542
Closes https://github.com/espressif/esp-idf/pull/18543
This commit is contained in:
Chen Chen
2026-06-02 15:56:25 +08:00
parent 10be973c0f
commit 69c97183c3
8 changed files with 105 additions and 19 deletions
@@ -70,6 +70,7 @@ void app_main(void)
.control_phase_bytes = 1, // According to SSD1306 datasheet
.lcd_cmd_bits = EXAMPLE_LCD_CMD_BITS, // According to SSD1306 datasheet
.lcd_param_bits = EXAMPLE_LCD_CMD_BITS, // According to SSD1306 datasheet
.transaction_timeout_ms = 0, // wait infinitely
#if CONFIG_EXAMPLE_LCD_CONTROLLER_SSD1306
.dc_bit_offset = 6, // According to SSD1306 datasheet
#elif CONFIG_EXAMPLE_LCD_CONTROLLER_SH1107