控制/MCU
#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条评论
快来发表一下你的评论吧 !