为星智开发板四个板级配置分别集成新的display文件,将oled的聊天信息显示改为滚动显示,加入了电量显示和睡眠功能 (#236)

This commit is contained in:
WMnologo
2025-02-26 22:09:57 +08:00
committed by GitHub
parent e55166b3b3
commit cbf479f636
12 changed files with 2976 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#include "wifi_board.h"
#include "audio_codecs/no_audio_codec.h"
#include "display/lcd_display.h"
#include "xingzhi_lcd_display.h"
#include "system_reset.h"
#include "application.h"
#include "button.h"
@@ -23,7 +23,7 @@ private:
Button boot_button_;
Button volume_up_button_;
Button volume_down_button_;
LcdDisplay* display_;
XINGZHI_1_54_TFT_LcdDisplay* display_;
void InitializeSpi() {
spi_bus_config_t buscfg = {};
@@ -103,7 +103,7 @@ private:
ESP_ERROR_CHECK(esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y));
ESP_ERROR_CHECK(esp_lcd_panel_invert_color(panel, true));
display_ = new SpiLcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
display_ = new XINGZHI_1_54_TFT_LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
{
.text_font = &font_puhui_16_4,