附录#include #include #include "dht.h"#define uchar unsigned char// 以后 unsigned char 就可以用 uchar 代替#define uint unsigned int// 以后 unsigned int 就可以用 uint 代替unsigned char UART_data; //定义串口接收数据变量sbit ADC_CS = P1^6; // ADC0832 的 CS 引脚sbit ADC_CLK = P1^7; // ADC0832 的 CLK 引脚sbit ADC_DAT = P3^2; // ADC0832 的 DI/DO 引脚sbit LcdRs_P = P1^3; // 1602 液晶的 RS 管脚 sbit LcdRw_P = P1^4; // 1602 液晶的 RW 管脚 sbit LcdE...
发表评论取消回复