標題: 單片機溫濕度控制系統程序錯誤 求幫助 [打印本頁]
作者: 蓑衣 時間: 2019-11-15 17:04
標題: 單片機溫濕度控制系統程序錯誤 求幫助
#include <AT89X52.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char
#include"1602.h"
#include<dh11.h>
uchar temp[] ="RH_SET:00% \0"; //設置 的濕度值顯示
uchar temp_s[] ="RH:00% TEMP:00 \0"; //實時濕度顯示
sbit sw3=P1^5; //按鍵定義
sbit sw1=P1^3;
sbit sw2=P1^4;
sbit baojing=P3^3;
....
error: 'temp':can't initialize,bad type or class
error:'temp':not in formal parameter list
error: 'temp_s':can't initialize,bad type or class
error:'temp_s':not in formal parameter list
error:syntax error near 'sbit'
請教一下,這些錯誤怎么改過來
| 歡迎光臨 (http://m.raoushi.com/bbs/) |
Powered by Discuz! X3.1 |