KT26-0607_AC695n-BTE-SDK312/apps/soundbox/ui/led_lyric/lyric_ui_pc.c
2026-06-07 19:38:16 +08:00

53 lines
1.0 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "includes.h"
#include "ui/ui_api.h"
#include "led_lyric.h"
#if TCFG_APP_PC_EN
#if (TCFG_UI_ENABLE && (CONFIG_UI_STYLE == STYLE_JL_LED_LYRICS))
static void lrc_show_pc(void)
{
u8 buf[50] = {"PC TASK"};
lyrics_update_font(buf, strlen(buf), NULL);
}
static void lyric_ui_pc_open(void)
{
/* ui_set_auto_reflash(500);//设置主页500ms自动刷新 */
}
static void lyric_ui_close_pc(void)
{
//lyrics_hide_update();
}
static void lyric_ui_pc_main(void) //主界面显示
{
lrc_show_pc();
}
static int lyric_ui_pc_user(u8 menu, u32 arg)//子界面显示 //返回true不继续传递 返回false由common统一处理
{
int ret = true;
switch (menu) {
default:
ret = false;
break;
}
return ret;
}
const struct lyric_ui_dis lyric_pc_main = {
.lyric_ui = LED_LYRICS_PC_MENU_MAIN,
.lyric_open = lyric_ui_pc_open,
.lyric_ui_main = lyric_ui_pc_main,
.lyric_ui_user = lyric_ui_pc_user,
.lyric_close = lyric_ui_close_pc,
};
#endif
#endif