ucharcommand,uchardat1)Р{if(LCD_TestStaBit01()==0)return(0);РLCD_WriteData(dat1);//发送数据1Рif(LCD_TestStaBit01()==0)return(0);РLCD_WriteCommand(command);//发送命令字return(1);Р}РР/********************************LCD_WriteTCommanРd3************************************************************************//************************************************Р************************名称:LCD_WriteTCommand3()Р*功能:写双参数命令子程序。会先判断LCM状态字。Р*入口参数:command要写入LCM的命令字Р*dat1参数1Р*dat2参数2Р*出口参数:操作出错返回0,否则返回1Р*说明:先发送两字节参数据数据,再发送命令字***********************************************************************/РucharLCD_WriteTCommand3(ucharcommand,uchardat1,uchardat2)Р{if(LCD_TestStaBit01()==0)return(0);РLCD_WriteData(dat1);//发送数据1Рif(LCD_TestStaBit01()==0)return(0);РLCD_WriteData(dat2);//发送数据2Рif(LCD_TestStaBit01()==0)return(0);