📄 display.h
字号:
/***********************
* display.h
***********************/
#include "types.h"
#include "key.h"
typedef struct {
UINT8 w;
UINT8 h;
UINT32 offset;
} IMAGE;
extern code IMAGE image_table[];
extern UINT16 code battery_pal[];
extern UINT16 code gray_pal[];
#define COLOR_BLACK RGB565(0x00,0x00,0x00)
#define COLOR_WHITE RGB565(0xFF,0xFF,0xFF)
#define COLOR_GOLD RGB565(0xFF,0xC1,0x25)
#define COLOR_GREEN RGB565(0x00,0x80,0x80)
#define COLOR_SELECT RGB565(255,0,0)
#define COLOR_UNSELECT RGB565(0,0,255)
//基本色表
#define Color_BLACK_def 0x00000000//黑
#define Color_WHITE_def 0x0000ffff//白
#define Color_RED_def 0x0000f800//红
//#define Color_YELLOW_def 0x0000fff2//黄
#define Color_YELLOW_def 0x0000e748//黄
#define Color_GREEN_def 0x000007e0//绿
#define Color_BULE_def 0x0000001f//蓝
#define Color_BULE1_def 0x0000000d//深蓝
#define Color_BULE2_def 0x0000335f//浅蓝
#define Color_MENU_def 0x0000fcc0//橙
#define Color_CYAN_def 0x00008cc1//青
#define Color_SAVE_def 0x0000ed80//保存背景
#define Color_BCK_def 0x0000633f//背景
#define Color_BCK2_def 0x0000400a//背景2
#define Color_BCK3_def 0x0000537e//背景3
void gfx_bg(void);
void gfx_bg_rectangle(UINT8 x, UINT8 y, UINT8 w, UINT8 h);
void gfx_set_bg(UINT16 color);
void gfx_image(UINT8 x, UINT8 y, IMAGE *pImage);
void gfx_battery(UINT8 pct);
void gfx_title_bar(void);
void gfx_file_line(UINT8 line);
void gfx_filename(UINT8 x, UINT8 y);
void gfx_select_line(UINT8 line);
void gfx_sound_volume(void);
void vLcd_SongName();
void vLcd_ScollDataUpdate(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -