#include <reg52.h>
#include <stdio.h>
#include <intrins.h>
#include <absacc.h>
#include <ctype.h>
#include <math.h>
#include <string.h>
//#include "I2C.h"
#include "lcd1602.h"
#include "adc0832.h"
sbit K1= P1^2;
sbit K2= P1^3;
sbit K3= P1^4;
sbit K4= P1^5;
sbit K5= P1^6;
sbit K6= P1^7;
sbit DQ= P2^7;
sbit BUZZ= P2^6;
uchar tmpdisplay[8]; //定义显示缓存数组
bit read_flag=0; //定义读时钟标志位
bit mode=0; //显示模式0正常1设定
uchar smoke[]="000";
uchar set_position=0;
uchar set_tempure=0; //设定温度
uchar set_smokescope=0; //设定浓度
int real_tempure=0; //实际温度
uchar real_smokescope=0; //实际烟雾浓度
uchar cursor_position=0;//光标位置
uchar time_counter_50ms=0;
uchar smokescope=0;
uchar first_read_tempe=0;//第一次读取温度数值
unsigned char
基于单片机单片机智能火灾报警系统设计-毕设课设 protues仿真
最新推荐文章于 2024-08-17 23:19:17 发布