📄 disp_pic.c.svn-base
字号:
#include "config.h"
// 声明外部图片数据
extern uint8 gImage_xp[];
extern uint8 gImage_pic1[];
// 显示xp图片
void DispXP_Pic(void)
{ uint32 x, y;
uint32 no;
uint16 dat;
TftSetWindow(20,50, 20+197,50+263);
TftSetWrite(20,50);
no = 0;
for(y=0; y<264; y++)
{ for(x=0; x<198; x++)
{ dat = (gImage_xp[no+1]<<8) | gImage_xp[no];
TftSendDat(dat);
no++;
no++;
}
}
TftSetWindow(0,0, 239,319);
}
// 显示全屏背景色
void Disp_BKColor(void)
{ uint32 x, y;
// 填充底色
TftSetWrite(0,0);
for(y=0; y<320; y++)
{ for(x=0; x<240; x++)
{ TftSendDat(1234);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -