|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
sbit beep=P1^6;
sbit bell=P3^2;
void delay(uchar dly)
{
uchar i,j;
for(i=255;i>0;i--)
for(j=dly;j>0;j--) ;
}
void main()
{
EA=1;
EX0=1;
IT0=0;
bell=0;
while(1)
{
}
} |
|