#include #include "lcd1602.h"#include "sgp30.h"#include "DHT11.H"#define uchar unsigned char #define uint unsigned int #define ulong unsigned longsbit k1=P1^3;sbit k2=P1^4;sbit k3=P1^5;sbit PW=P2^5;sbit RE=P2^2;sbit MOTOR=P2^4;sbit BELL=P2^1; uchar mode;uchar bz;uint b;uint co2h;uchar temp,humi;uint temph,humih,co2h;uchar send_bit;void xianshi(){if(mode==0){lcd_write_string(0,0,"Temp:");LcdWriteData(temp/10%10+'0');LcdWriteData(temp/1%10+'0');LcdWriteData('C');lcd_write_string(8,0,"Hu...
发表评论取消回复