📄 jk0061119_lcd._h
字号:
read_EEprom_to_array(32,JC,4);
read_EEprom_to_array(36,DL,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,2);
LCD_Display_ram[54]=ASCLL_byte2;
LCD_Display_ram[58]=0x41;
}
void LCD_map13_ready(void)// 浮充电流设置
{
if(Flag_press_key)
calcul_value_ASCLL(*A_Current_FC);
read_EEprom_to_array(32,FC,4);
read_EEprom_to_array(36,DL,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,2);
LCD_Display_ram[54]=ASCLL_byte2;
LCD_Display_ram[58]=0x41;
}
void LCD_map14_ready(void) //转换电流设置
{
if(Flag_press_key)
calcul_value_ASCLL(*A_Current_FC_Change_JC);
read_EEprom_to_array(32,ZH,4);
read_EEprom_to_array(36,DL,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,2);
LCD_Display_ram[54]=ASCLL_byte2;
LCD_Display_ram[58]=0x41;
}
void LCD_map15_ready(void)//合母过压设置
{
if(Flag_press_key)
calcul_value_ASCLL(calcul_value_decimal(*Voltage_HM_High_Alarm,3000));
read_EEprom_to_array(32,HM,4);
read_EEprom_to_array(36,GY,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,3);
LCD_Display_ram[58]=0x56;
}
void LCD_map16_ready(void)//合母欠压设置
{
if(Flag_press_key)
calcul_value_ASCLL(calcul_value_decimal(*Voltage_HM_Low_Alarm,3000));
read_EEprom_to_array(32,HM,4);
read_EEprom_to_array(36,GY,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,3);
LCD_Display_ram[58]=0x56;
}
void LCD_map17_ready(void)//控母过压设置
{
if(Flag_press_key)
calcul_value_ASCLL(calcul_value_decimal(*Voltage_KM_High_Alarm,3000));
read_EEprom_to_array(32,KM,4);
read_EEprom_to_array(36,GY,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,3);
LCD_Display_ram[58]=0x56;
}
void LCD_map18_ready(void)//控母欠压设置
{
if(Flag_press_key)
calcul_value_ASCLL(calcul_value_decimal(*Voltage_KM_Low_Alarm,3000));
read_EEprom_to_array(32,KM,4);
read_EEprom_to_array(36,GY,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,3);
LCD_Display_ram[58]=0x56;
}
void LCD_map19_ready(void)//传感器设置
{
if(Flag_press_key)
calcul_value_ASCLL(*A_Current_Sensor);
read_EEprom_to_array(32,CGQ,6);
read_EEprom_to_array(38,SZ,5);
read_Data_to_array(54,3);
LCD_Display_ram[57]=0x41;
}
void LCD_map20_ready(void)//均充间隔
{
if(Flag_press_key)
calcul_value_ASCLL(*Time_Interval_JC);
read_EEprom_to_array(32,JC,4);
read_EEprom_to_array(36,JG,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,4);
LCD_Display_ram[58]=0x68;
}
void LCD_map21_ready(void)//均充限时
{
if(Flag_press_key)
calcul_value_ASCLL(*Time_Limited_JC);
read_EEprom_to_array(32,JC,4);
read_EEprom_to_array(36,XS,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,1);
LCD_Display_ram[57]=0x6D;
}
void LCD_map22_ready(void)//均充延时
{
if(Flag_press_key)
calcul_value_ASCLL(*Time_Delay_JC);
read_EEprom_to_array(32,JC,4);
read_EEprom_to_array(36,YS,4);
read_EEprom_to_array(40,SZ,5);
read_Data_to_array(54,1);
LCD_Display_ram[57]=0x6D;
}
void LCD_map23_ready(void)//系数校准
{
read_EEprom_to_array(2,HM,4);
read_EEprom_to_array(6,DY,4);
read_EEprom_to_array(10,JZ,4);
read_EEprom_to_array(18,CD,4);
read_EEprom_to_array(22,DL,4);
read_EEprom_to_array(26,JZ,4);
read_EEprom_to_array(34,KM,4);
read_EEprom_to_array(38,DY,4);
read_EEprom_to_array(42,JZ,4);
read_EEprom_to_array(50,KM,4);
read_EEprom_to_array(54,DL,4);
read_EEprom_to_array(58,JZ,4);
}
void LCD_map24_ready(void)//合母电压校准
{
read_EEprom_to_array(0,HM,4);
read_EEprom_to_array(4,DY,5);
calcul_value_ASCLL_potentiometer(calcul_value_decimal(v_HM_Voltage,3000));
LCD_Display_ram[9]=ASCLL_byte1_potentiometer;
LCD_Display_ram[10]=ASCLL_byte2_potentiometer;
LCD_Display_ram[11]=ASCLL_byte3_potentiometer;
LCD_Display_ram[12]=0x2E;
LCD_Display_ram[13]=ASCLL_byte4_potentiometer;
LCD_Display_ram[15]=0x56;
read_EEprom_to_array(32,JZ,4);
read_EEprom_to_array(36,JZXS,5);
if(Flag_press_key)
calcul_value_ASCLL(*v_HM_data_potentiometer);
read_Data_to_array(54,1);
}
void LCD_map25_ready(void)//控母电压校准
{
read_EEprom_to_array(0,KM,4);
read_EEprom_to_array(4,DY,5);
calcul_value_ASCLL_potentiometer(calcul_value_decimal(v_KM_Voltage,3000));
LCD_Display_ram[9]=ASCLL_byte1_potentiometer;
LCD_Display_ram[10]=ASCLL_byte2_potentiometer;
LCD_Display_ram[11]=ASCLL_byte3_potentiometer;
LCD_Display_ram[12]=0x2E;
LCD_Display_ram[13]=ASCLL_byte4_potentiometer;
LCD_Display_ram[15]=0x56;
read_EEprom_to_array(32,JZ,4);
read_EEprom_to_array(36,JZXS,5);
if(Flag_press_key)
calcul_value_ASCLL(*v_KM_data_potentiometer);
read_Data_to_array(54,1);
}
void LCD_map26_ready(void)//充电电流校准
{
read_EEprom_to_array(0,CD,4);
read_EEprom_to_array(4,DL,5);
calcul_value_ASCLL_potentiometer(calcul_value_decimal(A_CD_Current,*A_Current_BypassSensor));
LCD_Display_ram[9]=ASCLL_byte1_potentiometer;
LCD_Display_ram[10]=ASCLL_byte2_potentiometer;
LCD_Display_ram[11]=ASCLL_byte3_potentiometer;
LCD_Display_ram[12]=0x2E;
LCD_Display_ram[13]=ASCLL_byte4_potentiometer;
LCD_Display_ram[15]=0x41;
read_EEprom_to_array(32,JZ,4);
read_EEprom_to_array(36,JZXS,5);
if(Flag_press_key)
calcul_value_ASCLL(*A_CD_Current_potentiometer);
read_Data_to_array(54,1);
}
void LCD_map27_ready(void)//控母电流校准
{
read_EEprom_to_array(0,KM,4);
read_EEprom_to_array(4,DL,5);
calcul_value_ASCLL_potentiometer(calcul_value_decimal(A_KM_Load_Current,*A_Current_Sensor));
LCD_Display_ram[9]=ASCLL_byte1_potentiometer;
LCD_Display_ram[10]=ASCLL_byte2_potentiometer;
LCD_Display_ram[11]=ASCLL_byte3_potentiometer;
LCD_Display_ram[12]=0x2E;
LCD_Display_ram[13]=ASCLL_byte4_potentiometer;
LCD_Display_ram[15]=0x41;
read_EEprom_to_array(32,JZ,4);
read_EEprom_to_array(36,JZXS,5);
if(Flag_press_key)
calcul_value_ASCLL(*A_KM_Load_Current_potentiometer);
read_Data_to_array(54,1);
}
void LCD_map28_ready(void)//均浮充切换
{
LCD_Display_ram[0]=0x02;
//read_EEprom_to_array(2,ZY,4);
read_EEprom_to_array(32,DQZT,9);
if(Flag_JC_FC)
{read_EEprom_to_array(42,JC,4);
LCD_Display_ram[47]=0x31;}
else
{read_EEprom_to_array(42,FC,4);
LCD_Display_ram[47]=0x30;}
read_EEprom_to_array(48,QHW,7);
LCD_Display_ram[55]=0x3C;
if(Flag_JC_FC)
read_EEprom_to_array(56,FC,4);
else
read_EEprom_to_array(56,JC,4);
LCD_Display_ram[60]=0x3E;
}
void select_data_to_LCD_ram(void)
{
char i;
for(i=0; i<64; i++)
LCD_Display_ram[i]=0x20;
if(floor_ID==1)
LCD_map0_ready();
else
{
if(floor_ID==2)
LCD_map1_ready();
else if(floor_ID==3)
{
if(menu_ID==1)
LCD_map0_ready();
else if(menu_ID==2)
LCD_map5_ready();
else if(menu_ID==3)
LCD_map8_ready();
//{//error_display();
//if(press_key_value_pc0==1)
//LCD_map8_ready();
//else if(press_key_value_pc0==2)
//LCD_map9_ready();
//else
//LCD_map10_ready();
//}
else if(menu_ID==4)
LCD_map6_ready();
else if(menu_ID==9)
LCD_map7_ready();
}
else if(floor_ID==4)
{ if(press_key_value_pc0<5)
LCD_map2_ready();
else if(press_key_value_pc0<9)
LCD_map3_ready();
else if(press_key_value_pc0<13)
LCD_map4_ready();
else if(press_key_value_pc0<17)
LCD_map23_ready();
else
{ LCD_map28_ready(); return; }
i=press_key_value_pc0%4;
if(i==0)
{
LCD_Display_ram[48]=0x02;
LCD_Display_ram[49]=0x1A;
}
else if(i==1)
{
LCD_Display_ram[0]=0x02;
LCD_Display_ram[1]=0x1A;
}
else if(i==2)
{
LCD_Display_ram[32]=0x02;
LCD_Display_ram[33]=0x1A;
}
else if(i==3)
{
LCD_Display_ram[16]=0x02;
LCD_Display_ram[17]=0x1A;
}
}
else if(floor_ID==5)
{
if(menu_ID==1)
LCD_map11_ready();
else if(menu_ID==2)
LCD_map12_ready();
else if(menu_ID==3)
LCD_map13_ready();
else if(menu_ID==4)
LCD_map14_ready();
else if(menu_ID==5)
LCD_map15_ready();
else if(menu_ID==6)
LCD_map16_ready();
else if(menu_ID==7)
LCD_map17_ready();
else if(menu_ID==8)
LCD_map18_ready();
else if(menu_ID==9)
LCD_map19_ready();
else if(menu_ID==10)
LCD_map20_ready();
else if(menu_ID==11)
LCD_map21_ready();
else if(menu_ID==12)
LCD_map22_ready();
else if(menu_ID==13)
LCD_map24_ready();
else if(menu_ID==14)
LCD_map25_ready();
else if(menu_ID==15)
LCD_map26_ready();
else if(menu_ID==16)
LCD_map27_ready();
LCD_Display_ram[21+press_key_value_pc2]=0x19;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -