Add optional cyd_35r (ESP32-3248S035) with 480x320 UI; default remains 2.8.

This commit is contained in:
2026-10-23 16:24:14 +08:00
parent cc363dc65a
commit b65ec37fbe
4 changed files with 88 additions and 25 deletions

View File

@@ -199,36 +199,36 @@ void ble_ui_create() {
lv_label_set_text(lbl_title, "CYD BLE");
lv_obj_set_style_text_color(lbl_title, lv_color_hex(COL_ACCENT), 0);
lv_obj_set_style_text_font(lbl_title, &lv_font_montserrat_20, 0);
lv_obj_set_pos(lbl_title, 10, 6);
lv_obj_set_pos(lbl_title, UX(10), UY(6));
lbl_state = lv_label_create(scr);
lv_obj_set_style_text_font(lbl_state, &lv_font_montserrat_14, 0);
lv_obj_set_pos(lbl_state, 10, 34);
lv_obj_set_pos(lbl_state, UX(10), UY(34));
lbl_name = lv_label_create(scr);
lv_obj_set_style_text_color(lbl_name, lv_color_hex(COL_INK), 0);
lv_obj_set_style_text_font(lbl_name, &lv_font_montserrat_14, 0);
lv_obj_set_pos(lbl_name, 10, 54);
lv_obj_set_pos(lbl_name, UX(10), UY(54));
lbl_addr = lv_label_create(scr);
lv_obj_set_style_text_color(lbl_addr, lv_color_hex(COL_MUTED), 0);
lv_obj_set_style_text_font(lbl_addr, &lv_font_montserrat_14, 0);
lv_obj_set_pos(lbl_addr, 10, 74);
lv_obj_set_pos(lbl_addr, UX(10), UY(74));
lbl_peer = lv_label_create(scr);
lv_obj_set_style_text_color(lbl_peer, lv_color_hex(COL_MUTED), 0);
lv_obj_set_style_text_font(lbl_peer, &lv_font_montserrat_14, 0);
lv_obj_set_pos(lbl_peer, 10, 94);
lv_obj_set_pos(lbl_peer, UX(10), UY(94));
lbl_echo = lv_label_create(scr);
lv_obj_set_style_text_font(lbl_echo, &lv_font_montserrat_14, 0);
lv_obj_set_pos(lbl_echo, 10, 114);
lv_obj_set_pos(lbl_echo, UX(10), UY(114));
lv_obj_t *hint = lv_label_create(scr);
lv_label_set_text(hint, "App: nRF Connect / Serial BT");
lv_obj_set_style_text_color(hint, lv_color_hex(COL_MUTED), 0);
lv_obj_set_style_text_font(hint, &lv_font_montserrat_14, 0);
lv_obj_set_pos(hint, 10, 134);
lv_obj_set_pos(hint, UX(10), UY(134));
const int bw = 72;
const int bh = 36;