uchar code addr[]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,//第一行显示位置
0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f//第二行显示位置
};
void zuobiao(uchar x,uchar y,uchar *s)
{
uchar dizhi;
dizhi=addr[16*x+y];
Cmd(dizhi | 0x80);
while(*s>0)
{
Data(*s);
s++;
}
}
zuobiao(1,0,table);
|