Adjust dependency components for ESP32-P4 (#623)

* Adjust dependency components for ESP32-P4

* Add backlight control and touch control to Waveshare ESP32-P4-NANO

* Increase the amount of saved information for Waveshare ESP32-P4-NANO
This commit is contained in:
Y1hsiaochunnn
2025-05-16 18:36:43 +08:00
committed by GitHub
parent 1c63934756
commit 7ceeffc157
3 changed files with 55 additions and 11 deletions

View File

@@ -435,8 +435,11 @@ void LcdDisplay::SetupUI() {
lv_obj_center(low_battery_label_);
lv_obj_add_flag(low_battery_popup_, LV_OBJ_FLAG_HIDDEN);
}
#if CONFIG_IDF_TARGET_ESP32P4
#define MAX_MESSAGES 40
#else
#define MAX_MESSAGES 20
#endif
void LcdDisplay::SetChatMessage(const char* role, const char* content) {
DisplayLockGuard lock(this);
if (content_ == nullptr) {