Merge pull request 'fix(box3): BSP esp-box-3 + rétroéclairage' (#7) from feat/idf-migration into main
CI / platformio (push) Failing after 11m6s

This commit was merged in pull request #7.
This commit is contained in:
2026-06-10 11:21:59 +00:00
2 changed files with 12 additions and 11 deletions
+4 -9
View File
@@ -1,15 +1,10 @@
dependencies:
espressif/esp-box:
# ESP32-S3-BOX-3 board support (ILI9341 LCD + GT911 touch). The original
# `espressif/esp-box` BSP targets the first-gen BOX (ST7789/TT21100) and
# leaves a BOX-3 screen black — this is the matching BSP.
espressif/esp-box-3:
version: ">=1.2.0"
espressif/esp-sr:
version: ">=1.4.0"
espressif/esp_codec_dev:
# 1.3.x+ moved to driver_ng i2c, conflicting with esp-box 1.x legacy BSP.
# Pin to the last 1.2 release that still uses the legacy driver.
version: "1.2.0"
espressif/button:
# esp-box 1.x bsp uses the old button_config_t.custom_button_config API;
# button v3.x removed it. Pin to the last 2.x release for compat.
version: "~2.5.0"
espressif/esp_websocket_client:
version: ">=1.0.0"
+8 -2
View File
@@ -9,7 +9,7 @@
#include <string.h>
#include "bsp/esp-box.h"
#include "bsp/esp-bsp.h"
#include "esp_log.h"
#include "lvgl.h"
@@ -181,8 +181,14 @@ esp_err_t plip_ui_init(void)
return ESP_FAIL;
}
// The voice app starts the display but never lights the backlight — turn
// it on (and to full brightness) or the whole UI is invisible.
bsp_display_brightness_init();
bsp_display_brightness_set(100);
lv_obj_t *scr = lv_screen_active();
lv_obj_set_style_bg_color(scr, lv_color_black(), 0);
lv_obj_set_style_bg_color(scr, lv_color_hex(0x101020), 0);
lv_obj_set_style_text_color(scr, lv_color_white(), 0);
// Content area above the fixed bottom button.
lv_obj_t *content = lv_obj_create(scr);