#include "reg52.h"
#define uchar unsigned char
#define uint unsigned int
sbit light = P1^0
sbit loud = P1^7;
sbit alarm = P2^0;
bit alarm_flag,flag_dec,flag_change;
uint t0_count = 1;
uint t0_set,second;
void delay_1ms(unsigned int count) //1MS的延时×count
{
unsigned int i,j;
for(i=0;i
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)