📄 display.i
字号:
Bclear_LCD_screen=1;
tiaoshi_falg=0;
show_ID=0;
}
}
if(tiaoshi_falg==1)
{
erase_picture(16,0,65,16);
erase_picture(48,0,65,16);
show_picture(testing, 32,0,128,16);
command(0x01);
DelayNS(300);
tiaoshi_falg=0;
}
}
break;
default:
break;
}
}
break;
case WARNING_SCREEN:
{
if(Bclear_LCD_screen)
{
Bclear_LCD_screen=0;
clr_LCD_screen();
show_ID=0;
show_picture(ldm_100, 0,30,56,16);
show_picture(baojin_xianzhi, 16,0,64,16);
show_picture_n(shuchu_peizhi, 32,0,64,16);
}
if((IO0PIN & ENTER)==0)
{
delay(200);
if((IO0PIN & ENTER)==0)
{
while((IO0PIN & ENTER)==0);
current_screen=WARNING_SCREEN;
Bclear_LCD_screen=1;
show_ID=0;
}
}
else if( (IO0PIN & CANCEL ) == 0)
{
delay(200);
if((IO0PIN & CANCEL)==0)
{
while((IO0PIN & CANCEL)==0);
current_screen=MAIN_SCREEN;
Bclear_LCD_screen=1;
show_ID=0;
}
}
}
break;
case CONNECT_SCREEN:
{
if(Bclear_LCD_screen)
{
Bclear_LCD_screen=0;
clr_LCD_screen();
show_ID=0;
show_picture(ldm_100, 0,30,56,16);
show_picture(munilian_peizhi, 16,0,64,16);
show_picture_n(touguoli_peizhi, 32,0,64,16);
show_picture(xiaoguandu_peizhi, 48,0,64,16);
}
if (!out_config)
{
if((IO0PIN & DOWN)==0)
{
delay(200);
if((IO0PIN & DOWN)==0)
{
while((IO0PIN & DOWN)==0);
Bdown_down=1;
show_ID++;
if (show_ID>3)
show_ID=0;
}
}
else if((IO0PIN & UP)==0)
{
delay(200);
if((IO0PIN & UP)==0)
{
while((IO0PIN & UP)==0);
show_ID--;
if (show_ID>3)
show_ID=3;
}
}
}
switch (show_ID)
{
case 0:
{
if(_420mA_config==0)
{
show_picture(ldm_100, 0,30,56,16);
show_picture(munilian_peizhi, 16,0,64,16);
show_picture_n(touguoli_peizhi, 32,0,64,16);
show_picture(xiaoguandu_peizhi, 48,0,64,16);
}
if((IO0PIN & ENTER)==0)
{
delay(200);
if((IO0PIN & ENTER)==0)
{
while((IO0PIN & ENTER)==0);
current_screen=WARNING_SCREEN;
Bclear_LCD_screen=1;_420mA_config=1;
show_ID=0;
}
}
else if( (IO0PIN & CANCEL ) == 0)
{
delay(200);
if((IO0PIN & CANCEL)==0)
{
while((IO0PIN & CANCEL)==0);
current_screen=MAIN_SCREEN;
Bclear_LCD_screen=1;_420mA_config=0;
show_ID=0;
}
}
if(_420mA_config==1)
{
if(Bclear_LCD_screen)
{
Bclear_LCD_screen=0;
clr_LCD_screen();
show_picture(ldm_100, 0,30,56,16);
show_picture(_4matogouli, 16,0,64,16); show_number(0,1, 66);show_picture(baifenhao,16,108,8,16);
show_picture(_20matogouli,32,0,64,16); show_number(99,2,66);show_picture(baifenhao,32,108,8,16);
show_picture(baocheng, 48,32, 64,16);
}
}
}
break;
case 1:
{
show_picture(ldm_100, 0,30,56,16);
show_picture(touguoli_peizhi, 16,0,64,16);
show_picture_n(xiaoguandu_peizhi, 32,0,64,16);
show_picture(fengchong_nondu, 48,0,64,16);
}
break;
case 2:
{
show_picture(ldm_100, 0,30,56,16);
show_picture(xiaoguandu_peizhi, 16,0,64,16);
show_picture_n(fengchong_nondu, 32,0,64,16);
show_picture(munilian_peizhi, 48,0,64,16);
}
break;
case 3:
{
if(out_config==0)
{
show_picture(ldm_100, 0,30,56,16);
show_picture(fengchong_nondu, 16,0,64,16);
show_picture_n(munilian_peizhi, 32,0,64,16);
show_picture(touguoli_peizhi, 48,0,64,16);
}
if((IO0PIN & ENTER)==0)
{
delay(200);
if((IO0PIN & ENTER)==0)
{
while((IO0PIN & ENTER)==0);
Bclear_LCD_screen=1;
out_config=1;
configure=0;
delay(2000);
}
}
else if( (IO0PIN & CANCEL ) == 0)
{
delay(200);
if((IO0PIN & CANCEL)==0)
{
while((IO0PIN & CANCEL)==0);
current_screen=DEFAULT_SCREEN;
Bclear_LCD_screen=1;
show_ID=0; configure=0; write_flag=0;
out_config=0;chanel_select=0;
}
}
if(out_config==1)
{
if((Bclear_LCD_screen)&&(configure==0))
{
Bclear_LCD_screen=0;
clr_LCD_screen();
show_picture(ldm_100, 0,30,56,16);
show_picture(tongdao1, 16,0,64,16);
show_picture(tongdao2, 32,0,64,16);
show_picture(baocheng, 48,32,64,16);
show_picture_n(xiao_guan_du, 16,70,48,16);
show_picture(touguo_li, 32,70,48,16);
}
if(((IO0PIN & DOWN)==0)&&(chanel_select==0))
{
delay(200);
if((IO0PIN & DOWN)==0)
{
while((IO0PIN & DOWN)==0);
config_id++;
if (config_id>2)
config_id=0;
}
}
else if(((IO0PIN & UP)==0)&&(chanel_select==0))
{
delay(200);
if((IO0PIN & UP)==0)
{
while((IO0PIN & UP)==0);
config_id--;
if (config_id>2)
config_id=2;
}
}
switch(config_id)
{
case 0:
{
if(chanel_select==0)
{
show_picture(ldm_100, 0,30,56,16);
show_picture_n(tongdao1, 16,0,64,16);
show_picture(tongdao2, 32,0,64,16);
show_picture(baocheng, 48,32,64,16);
show_picture(xiao_guan_du, 16,70,48,16);
show_picture(touguo_li, 32,70,48,16);
}
if((IO0PIN & ENTER)==0)
{
delay(200);
if((IO0PIN & ENTER)==0)
{
while((IO0PIN & ENTER)==0);
Bclear_LCD_screen=1;
configure=1;
chanel_select=1;
}
}
else if( (IO0PIN & CANCEL ) == 0)
{
delay(200);
if((IO0PIN & CANCEL)==0)
{
while((IO0PIN & CANCEL)==0);
current_screen=DEFAULT_SCREEN;
Bclear_LCD_screen=1;
show_ID=0;write_flag=0;
configure=0;chanel_select=0;
out_config=0;
}
}
if((chanel_select==1)&&(configure==1))
{
if(Bclear_LCD_screen)
{
Bclear_LCD_screen=0;
clr_LCD_screen();
show_picture(ldm_100, 0,30,56,16);
show_picture(tongdao1, 16,0,64,16);
show_picture(tongdao2, 32,0,64,16);
show_picture(baocheng, 48,32, 64,16);
show_picture_n(xiao_guan_du, 16,70,48,16);
show_picture(touguo_li, 32,70,48,16);
}
if((IO0PIN & DOWN)==0)
{
delay(200);
if((IO0PIN & DOWN)==0)
{
while((IO0PIN & DOWN)==0);
config_id1++;
if (config_id1>2)
config_id1=0;
write_flag=1;
}
}
else if((IO0PIN & UP)==0)
{
delay(200);
if((IO0PIN & UP)==0)
{
while((IO0PIN & UP)==0);
config_id1--;
if (config_id1>2)
config_id1=2;
write_flag=1;
}
}
switch(config_id1)
{
case 0:
{
show_picture(ldm_100, 0,30,56,16);
show_picture(tongdao1, 16,0,64,16);
show_picture(tongdao2, 32,0,64,16);
show_picture(baocheng, 48,32, 64,16);
show_picture_n(xiao_guan_du, 16,70,48,16);
show_picture(touguo_li, 32,70,48,16);
}break;
case 1:
{
show_picture(ldm_100, 0,30,56,16);
show_picture(tongdao1, 16,0,64,16);
show_picture(tongdao2, 32,0,64,16);
show_picture(baocheng, 48,32, 64,16);
show_picture_n(touguo_li, 16,70,48,16);
show_picture(xiao_guan_du, 32,70,48,16);
}break;
case 2:
{
show_picture(ldm_100, 0,30,56,16);
show_picture(tongdao1, 16,0,64,16);
show_picture(tongdao2, 32,0,64,16);
show_picture(baocheng, 48,32, 64,16);
show_picture_n(fencheng_nondu, 16,70,48,16);
show_picture(touguo_li, 32,70,48,16);
}break;
default:
break;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -