#include "stm32f10x.h"//主程序是这样的main.c
#include "delay.h"
#include "sys.h"
#include "DTH117.h"
#include "usart.h"
u8 temp = 0;
u8 humi = 0;
int main()
{
delay_init();
Usart1_Init(115200);
DHT11_Init();
while(1)
{
DHT11_Read_Data(&temp,&humi);
UsartPrintf(USART_DEBUG,"温度%d 湿度%d",temp,humi);
delay_ms(100);
}
}
//其他的都在压缩包里面,希望可以帮我解答一下
|