標題:
MAIN.C(18): warning C206: 'temp_to_str': missing function-prototype
[打印本頁]
作者:
wangguosong123
時間:
2018-5-7 09:27
標題:
MAIN.C(18): warning C206: 'temp_to_str': missing function-prototype
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
sbit Motor1=P1^7;
sbit Motor2=P1^6;
sbit key1=P1^1;
sbit key2=P1^2;
sbit DQ=P1^0;
uchar temp_value; //溫度值
uchar TempBuffer[5];
#include"DS18B20.h"
#include"LCD.h"
void main()
{ LCD_init();
LCD_str(0,0,"temperature");
while(1)
{ ReadTemp();
temp_to_str();
LCD_str(1,5,TempBuffer);
Motor1=1;
Motor2=0;
}
}
作者:
出來逛逛
時間:
2018-5-9 16:15
main函數(shù)前面沒有聲明temp_to_str這個函數(shù)
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1