⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dis_lib.txt

📁 SDU的字库
💻 TXT
字号:


uchar floor_h;
uchar floor_l;

char  dis_types;
uchar disappear_time;
uchar   text_b_c,  text_color, text_AT_sw;	


uchar data text_1[20]={0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uchar idata text_2[8]={0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uchar idata text_3[8]={0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uchar idata text_4[8]={0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uchar idata text_5[8]={0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uchar idata text_6[20]={0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};


/*********************************************************************************************************
** 函数名称:  
** 功能描述:  
********************************************************************************************************/

void row_1_text()
{
  uchar i;
  for(i=0;i<20;i++)
  {
   MB90092_DisChar (2+i,0, text_1[i], 2, text_b_c,text_color,text_AT_sw);
  }
}

void row_2_text()
{
  uchar i;
  for(i=0;i<8;i++)
  {
   MB90092_DisChar (2+i,2, text_2[i], 3, text_b_c,text_color,text_AT_sw);
  }
}

void row_3_text()
{
  uchar i;
  for(i=0;i<8;i++)
  {
   MB90092_DisChar (2+i,4, text_3[i], 3, text_b_c,text_color,text_AT_sw);
  }
}

void row_4_text()
{
  uchar i;
  for(i=0;i<8;i++)
  {
   MB90092_DisChar (2+i,6, text_4[i], 3, text_b_c,text_color,text_AT_sw);
  }
}

void row_5_text()
{
  uchar i;
  for(i=0;i<8;i++)
  {
   MB90092_DisChar (2+i,8, text_5[i], 3, text_b_c,text_color,text_AT_sw);
  }
}

void row_6_text()
{
  uchar i;
  for(i=0;i<20;i++)
  {
   MB90092_DisChar (2+i,10, text_5[i], 2, text_b_c,text_color,text_AT_sw);
  }
}


/*********************************************************************************************************
** 函数名称: sbwhz( ) 
** 功能描述: 显示" 设备维护中 "
********************************************************************************************************/


void sbwhz_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x89;
  text_5[2] = 0x8a;
  text_5[3] = 0x8b;
  text_5[4] = 0x8c;
  text_5[5] = 0x8f;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

 
}
/*********************************************************************************************************
** 函数名称: xfysy_cn( ) 
** 功能描述: 显示" 消防员使用 "
********************************************************************************************************/
void xfysy_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x7b;
  text_5[2] = 0x7c;
  text_5[3] = 0x7d;
  text_5[4] = 0x7e;
  text_5[5] = 0x7f;
  text_5[6] = 0x10;
  text_5[7] = 0x10;
 
}
/*********************************************************************************************************
** 函数名称: qjz_cn( ) 
** 功能描述: 显示" 清洁中 "
********************************************************************************************************/
void qjz_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x10;
  text_5[2] = 0x8d;
  text_5[3] = 0x8e;
  text_5[4] = 0x8f;
  text_5[5] = 0x10;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

}
/*********************************************************************************************************
** 函数名称: ztfw_cn( ) 
** 功能描述: 显示" 暂停服务 "
********************************************************************************************************/
void ztfw_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x10;
  text_5[2] = 0x85;
  text_5[3] = 0x86;
  text_5[4] = 0x87;
  text_5[5] = 0x88;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

}
/*********************************************************************************************************
** 函数名称: ztfw_cn( ) 
** 功能描述: 显示" 超载 "
********************************************************************************************************/
void cz_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x10;
  text_5[2] = 0x10;
  text_5[3] = 0x80;
  text_5[4] = 0x81;
  text_5[5] = 0x10;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

}
/*********************************************************************************************************
** 函数名称: mz_cn( ) 
** 功能描述: 显示" 满载 "
********************************************************************************************************/
void mz_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x10;
  text_5[2] = 0x10;
  text_5[3] = 0x82;
  text_5[4] = 0x81;
  text_5[5] = 0x10;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

}
/*********************************************************************************************************
** 函数名称: hj_cn( ) 
** 功能描述: 显示" 火警 "
********************************************************************************************************/
void hj_cn()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x10;
  text_5[2] = 0x10;
  text_5[3] = 0x83;
  text_5[4] = 0x84;
  text_5[5] = 0x10;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

}
/*********************************************************************************************************
** 函数名称: null( ) 
** 功能描述: 显示"  "
********************************************************************************************************/
void null()
{ 
  text_5[0] = 0x10;
  text_5[1] = 0x10;
  text_5[2] = 0x10;
  text_5[3] = 0x10;
  text_5[4] = 0x10;
  text_5[5] = 0x10;
  text_5[6] = 0x10;
  text_5[7] = 0x10;

}


void dis_mode( uchar n_t )
{
  text_3[0] = 0x10;
  text_3[1] = 0xa4;
  text_3[2] = 0xa5;
  text_3[3] = 0xa6;
  text_3[4] = 0xa7;
  text_3[5] = n_t;
  text_3[6] = 0x10;
  text_3[6] = 0x10;
  
}


// dis part
uchar arrow_space_x,arrow_space_y,arrow_size,arrow_b_c; arrow_color,arrow_AT_sw;
uchar floor_space_x,floor_space_y,floor_size,floor_b_c; floor_color,floor_AT_sw;
// dis part end

/*********************************************************************************************************
** 函数名称: floor()
** 功能描述: 显示楼层值floor_h,floor_l
********************************************************************************************************/

void dis_floor()
{
 text_1[0]= 0xaa;
 text_1[1]= 0x10;
 text_1[2]= floor_h;
 text_1[3]= floor_l;
 text_1[4]= 0x10;
 text_1[5]= 0xab;
}
 
/*********************************************************************************************************
** 函数名称: dis_number()
** 功能描述: 显示楼梯号
********************************************************************************************************/
void dis_number()
{
text_1[9] = 6;
text_1[10]= 0xac;
}

/*********************************************************************************************************
** 函数名称: up_arrow() and down_arrow() 
** 功能描述: OSD图形:上下箭头
********************************************************************************************************/
void up_arrow_stop()
{
 text_1[15] = 0x90;
 text_1[16] = 0x10;
 text_1[17] = 0x1f;
 text_1[18] = 0x10;
 text_1[19] = 0x91;
}


void down_arrow_stop()														 
{
 text_1[15] = 0x92;
 text_1[16] = 0x10;
 text_1[17] = 0x2f;
 text_1[18] = 0x10;
 text_1[19] = 0x91;
}


void stop()
{
 text_1[15] = 0x93;
 text_1[16] = 0x10;
 text_1[17] = 0x95;
 text_1[18] = 0x10;
 text_1[19] = 0x94;
}







 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -