ACM-12864汉字液晶显示驱动程序
unsigned char code hz[]={ 显示汉字,fb==1:反白显示 显示字符,fb==1:反白显示
/*解:0*/
0x20,0x10,0xec,0x27,0xf4,0x2c,0xe4,0x40,
0x22,0x9e,0x2,0xd2,0x22,0x1f,0x2,0x0,
0x80,0x40,0x3f,0x9,0x3f,0x89,0xff,0x8,
0xa,0x9,0x9,0xff,0x9,0x9,0x8,0x0
};
void dh(unsigned char x,unsigned char y,unsigned char n,unsigned char fb) {
unsigned char i,dd;
for (i=0;i16;i++) {
dd=hz[i+n*32];
if (fb) if (n!=kongbai) dd=255-dd;
lw(x*8+i,y,dd);
dd=hz[i+n*32+16];
if (fb) if (n!=kongbai) dd=255-dd;
lw(x*8+i,y+1,dd);
}
}
void da(unsigned char x,unsigned char y,unsigned char n,unsigned char fb) {
unsigned char i,dd;
n-=32;
if (n>128) n=0;
if (fb) dd=255; else dd=0;
lw(x*8,y,dd);
lw(x*8,y+1,dd);
for (i=0;i7;i++) {
dd=asc[i+n*16];
if (fb) dd=255-dd;
lw(x*8+i+1,y,dd);
dd=asc[i+n*16+8];
if (fb) dd=255-dd;
lw(x*8+i+1,y+1,dd);
}
}
- VxWorks实时操作系统下MPC8260ATM驱动的实现(11-11)
- Linux内核解读入门(11-09)
- Linux操作系统网络驱动程序编写(04-11)
- Linux系统对ISA总线DMA的实现(06-19)
- 基于MPEG-4的嵌入式多媒体监控系统中压缩/解压卡的设计与实现(10-15)
- Windows CE下驱动程序开发基础(04-10)