forked from xiaozhi/xiaozhi-esp32
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user