x_pos += 0x80;
lcd_command_write(x_pos);//写入指针位置
lcd_busy_wait();
lcd_rs_port=1;
lcd_rw_port=0;
lcd_en_port=0;
lcd_data_port=lcd_dat;
lcd_en_port=1;
lcd_en_port=0;
}
void lcd_bad_check() //LCD1602 坏点检查
{
char i,j;
for(i=0;i<2;i++)
for(j=0;j<16;j++)
lcd_char_write(j,i,0xff);