本项目旨在介绍如何在嵌入式系统开发板的LCD屏幕上显示图片,涵盖从图像格式转换到代码实现的全过程。
#include
#include
#include lcd.h
#include regs.h
extern const unsigned char gImage_6[261120];
// extern const unsigned char gImage_5[261120];
extern const unsigned char gImage_a[83784];
extern const unsigned char test[];
static unsigned short drawb[272][480]; // it is a public draw area
unsigned char mask[] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
unsigned char mat[] = {
0x00, 0x00,
0x10, 0x38,
0x6c, 0xc6,
0xfe,
0xc6,
0xc6,
0xc6,
0x00,
0x00,
0x00,
0x00
};