PC機與單片機在串口通訊
160的配置文件:
------------------------------------1602.h開始---------------------------------------------
#define uchar unsigned char
#define uint unsigned int
#define RS
#define RW
#define EN
#define INDATA
#define OUTDATA
/
uchar lcd_bz(void)
{
}
/
void lcd_write(uchar cmd)
{
}
/
void lcd_write_cmd(uchar cmd)
{
}
/
void lcd_write_data(uchar data)
{
}
//
void lcd_setxy(uchar x, uchar y)
{
}
/
void lcd_init(void)
{
}
/
void lcd_clean(uchar lcd_line)
{
}
------------------------------------1602.h結束--------------------------------------------
串口設置的頭文件
------------------------------------com.h開始--------------------------------------------
#define uchar unsigned char
#define uint unsigned int
#define
#define
/
}
------------------------------------main.c結束--------------------------------------------
評論