??
? EN=0;
? write_com(0x38);
? write_com(0x0c);
? write_com(0x06);
? write_com(0x01);
}
?
void printc(uchar lcd_data)????????? //輸出一個字符到LCD
{
??? write_data(lcd_data);
}
void prints(uchar *lcd_string)?????? //輸出一個字符串到LCD
{
?uchar i=0;
?while(lcd_string[i]!=0x00)
? {
?? write_data(lcd_string[i]);
?? i++;
? }
}
void setPosition(uchar x)??????????? //LCD光標定位到x處
{
? write_com(0x80+x);
}