標(biāo)題:
LCD1602.h(9): error C129: missing ';' before 'LCD1602_RS'
[打印本頁]
作者:
tktktkl
時(shí)間:
2022-9-12 11:20
標(biāo)題:
LCD1602.h(9): error C129: missing ';' before 'LCD1602_RS'
一直顯示這個(gè)錯(cuò)誤 請(qǐng)問哪里出了問題#ifndef __LCD1602_H__
#define __LCD1602_H__
//#include <reg52.h>
#include <STC89C5xRC.H>
#define LCD1602_PORT P0
Sbit LCD1602_RS = P2^6;
Sbit LCD1602_RW = P2^5;
Sbit LCD1602_EN = P2^7;
//????????
extern void LCD1602_delay_ms(unsigned int n);
extern void LCD1602_write_com(unsigned char com);
extern void LCD1602_printc(unsigned char dat);
extern void LCD1602_prints(unsigned char *s);
extern void LCD1602_Init();
extern void LCD1602_set_position(bit hang, unsigned char x); //LCD?????x?
extern void LcdPrintNum(unsigned int num);
#endif
作者:
一事無成
時(shí)間:
2022-9-12 17:50
Sbit改成sbit,sbit是關(guān)鍵詞會(huì)高亮成紅色的
作者:
塵土的飛揚(yáng)
時(shí)間:
2022-9-12 19:04
可能程序中沒有#include <STC89C5xRC.H>頭文件
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1