Compare commits

..

2 Commits

Author SHA1 Message Date
Terrence
f4ed1a4a0d remove pm config code 2026-02-09 19:05:47 +08:00
Terrence
f8a4b8b70d chore: Update component versions and enhance UI setup across multiple boards
- Bumped uart-eth-modem version from ~0.3.2 to ~0.3.3 in idf_component.yml.
- Added SetupUI method to various display classes to ensure proper UI initialization before usage.
- Improved error handling in display classes to prevent issues when UI is not set up.
- Ensured UI customization is performed in SetupUI rather than constructors for better reliability.
2026-02-09 10:21:31 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
#define DISPLAY_SPI_CS_PIN GPIO_NUM_9
#define DISPLAY_WIDTH 240
#define DISPLAY_HEIGHT 296
#define DISPLAY_HEIGHT 320
#define DISPLAY_MIRROR_X true
#define DISPLAY_MIRROR_Y false
#define DISPLAY_SWAP_XY false

View File

@@ -53,9 +53,9 @@ public:
lv_obj_set_style_pad_left(top_bar_, LV_HOR_RES * 0.12, 0); // 左侧填充12%
lv_obj_set_style_pad_right(top_bar_, LV_HOR_RES * 0.12, 0); // 右侧填充12%
// 表情容器上移适配
lv_obj_align(emoji_box_, LV_ALIGN_CENTER, 0, -30); // 向上偏移30
lv_obj_align(emoji_box_, LV_ALIGN_CENTER, 0, -50); // 向上偏移50
// 消息栏适配
lv_obj_align(bottom_bar_, LV_ALIGN_BOTTOM_MID, 0, -20); // 向上偏移20
lv_obj_align(bottom_bar_, LV_ALIGN_BOTTOM_MID, 0, -40); // 向上偏移40
}
};