📄 lcd.c
字号:
case 0x40:
show[0]=5;
show[1]=zi;
show[2]=jian;
show[3]=null;
show[4]=null;
show[5]=null;
show[6]=null;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=31;
show[13]=0xff;
line_lcd(2,show);
break;
default: break;
}
switch(id)
{
case 0x01:
show[0]=1;
show[1]=36;
show[2]=2;
show[3]=null;
show[4]=duo;
show[5]=mai;
show[6]=chong;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
case 0x02:
show[0]=1;
show[1]=36;
show[2]=3;
show[3]=null;
show[4]=shuang;
show[5]=dian;
show[6]=men;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
case 0x03:
show[0]=1;
show[1]=36;
show[2]=4;
show[3]=null;
show[4]=dan;
show[5]=bai;
show[6]=zhou;
show[7]=qi1;
show[8]=null;
show[9]=null;
show[10]=32;
show[11]=0xff;
line_lcd(0,show);
break;
case 0x04:
show[0]=1;
show[1]=36;
show[2]=5;
show[3]=null;
show[4]=shi;
show[5]=zhong2;
show[6]=null;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=32;
show[13]=0xff;
line_lcd(0,show);
break;
case 0x10:
show[0]=2;
show[1]=36;
show[2]=1;
show[3]=null;
show[4]=dan;
show[5]=dian;
show[6]=men;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
case 0x11:
show[0]=2;
show[1]=36;
show[2]=2;
show[3]=null;
show[4]=pen;
show[5]=zhuang;
show[6]=null;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=32;
show[13]=0xff;
line_lcd(0,show);
break;
case 0x12:
show[0]=2;
show[1]=36;
show[2]=3;
show[3]=null;
show[4]=jiao;
show[5]=su;
show[6]=du2;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
case 0x13:
show[0]=2;
show[1]=36;
show[2]=4;
show[3]=null;
show[4]=zhuan;
show[5]=su;
show[6]=null;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=32;
show[13]=0xff;
line_lcd(0,show);
break;
case 0x20:
show[0]=3;
show[1]=36;
show[2]=1;
show[3]=null;
show[4]=dan;
show[5]=dian;
show[6]=men;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
case 0x21:
show[0]=3;
show[1]=36;
show[2]=2;
show[3]=null;
show[4]=xian;
show[5]=jia;
show[6]=su;
show[7]=du2;
show[8]=null;
show[9]=null;
show[10]=32;
show[11]=0xff;
line_lcd(0,show);
break;
case 0x22:
show[0]=3;
show[1]=36;
show[2]=3;
show[3]=null;
show[4]=jiao;
show[5]=jia;
show[6]=su;
show[7]=du2;
show[8]=null;
show[9]=null;
show[10]=32;
show[11]=0xff;
line_lcd(0,show);
break;
case 0x23:
show[0]=3;
show[1]=36;
show[2]=4;
show[3]=null;
show[4]=shuang;
show[5]=dian;
show[6]=men;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
case 0x30:
show[0]=4;
show[1]=36;
show[2]=1;
show[3]=null;
show[4]=3;
show[5]=0;
show[6]=miao;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=null;
show[13]=32;
show[14]=0xff;
line_lcd(0,show);
break;
case 0x31:
show[0]=4;
show[1]=36;
show[2]=2;
show[3]=null;
show[4]=6;
show[5]=0;
show[6]=miao;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=null;
show[13]=32;
show[14]=0xff;
line_lcd(0,show);
break;
case 0x32:
show[0]=4;
show[1]=36;
show[2]=3;
show[3]=null;
show[4]=null;
show[5]=3;
show[6]=fen;
show[7]=zhong2;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=32;
show[13]=0xff;
line_lcd(0,show);
break;
case 0x33:
show[0]=4;
show[1]=36;
show[2]=4;
show[3]=null;
show[4]=shou;
show[5]=dong;
show[6]=null;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=null;
show[12]=32;
show[13]=0xff;
line_lcd(0,show);
break;
case 0x40:
show[0]=null;
show[1]=null;
show[2]=guang;
show[3]=dian;
show[4]=men;
show[5]=zi;
show[6]=jian;
show[7]=null;
show[8]=null;
show[7]=null;
show[10]=0xff;
line_lcd(0,show);
break;
default:
show[0]=1;
show[1]=36;
show[2]=1;
show[3]=null;
show[4]=dan;
show[5]=dian;
show[6]=men;
show[7]=null;
show[8]=null;
show[9]=null;
show[10]=null;
show[11]=32;
show[12]=0xff;
line_lcd(0,show);
break;
}
}
void black_show(unsigned char lin,unsigned char byte,unsigned char linehead )
{
unsigned char i;
unsigned char k;
unsigned int addr_ziku;
unsigned char agaist;
i=byte*8;
if(i<=53)//left
{
PR0(i);
PR0(0xb8|lin);
for(k=0;k<8;k++)
{
addr_ziku=linehead*16+k;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR1(agaist);
}
PR0(i);
PR0(0xb8|(lin+1));
for(k=0;k<8;k++)
{addr_ziku=linehead*16+k+8;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR1(agaist);
}
}
else if(i>=61)//right
{
PR3(i%61);
PR3(0xb8|lin);
for(k=0;k<8;k++)
{addr_ziku=linehead*16+k;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR4(agaist);
}
PR3(i%61);
PR3(0xb8|(lin+1));
for(k=0;k<8;k++)
{addr_ziku=linehead*16+k+8;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR4(agaist);
}
}
else //mid
{
PR0(i);
PR0(0xb8|lin);
for(k=0;k<(61-i);k++)
{addr_ziku=linehead*16+k;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR1(agaist);
}
PR3(0);
PR3(0xb8|lin);
for(k=0;k<(i+8-61);k++)
{addr_ziku=linehead*16+k+61-i;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR4(agaist);
}
PR0(i);
PR0(0xb8|(lin+1));
for(k=0;k<(61-i);k++)
{addr_ziku=linehead*16+k+8;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR1(agaist);
}
PR3(0);
PR3(0xb8|(lin+1));
for(k=0;k<(i+8-61);k++)
{addr_ziku=linehead*16+8+k+61-i;
agaist=ZM[addr_ziku];
agaist=~agaist;
PR4(agaist);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -