void PutGB1616(unsigned int x, unsigned int y, unsigned char c[2], unsigned int fColor,unsigned int bColor)
{
unsigned int i,j,k;
Cmd_Write(0x40,0x80); //寄存器配置选择文字模式
Cmd_Write(0x21,0x00); //Font Control
Cmd_Write(0x22,0x05); //transparency 0x45
Cmd_Write(0x2E,0x00); //文字大小,间距设置
Cmd_Write(0x2f,0x81); // Font ROM Setting GT23L32s4w_GB2312
FontWrite_Position(x,y);
for (k=0;k<64;k++)
{
if ((codeGB_16[k].Index[0]==c[0])&&(codeGB_16[k].Index[1]==c[1]))
{
for(i=0;i<32;i++) {
unsigned short m=codeGB_16[k].Msk; for(j=0;j<8;j++) {
if((m&0x80)==0x80) {
Text_Foreground_Color1(fColor);
}
else {
Text_Background_Color1(bColor);
}
m<<=1;
}
}
}
}
}