兴义民族师范学院本科毕业论文1附录源程序:#include "stm32f10x.h"#include "delay.h"#include "usart.h"#include "stm32f10x_usart.h"#include "stm32f10x_tim.h"#include "LED.h"#include "dht11.h"#include "adc.h"#include "OLED.h"#define HW GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_7) //1u8 setdata1=0,setdata2=0,setdata3=0;u8 temperature;u8 humidity;u16 adcx,adcx2;unsigned char time,flage;u8 CNT=0,CNT2=0;char end_char=0x1A;u8 sendBuf2[40];u8 RS485BUF[200];//485 数据接收数据区u8 RS485READDN[20];//485 数据发送电能u8...
发表评论取消回复