1466下载地址 https://docs.qq.com/doc/DWEpnR2pOWU91b3p4?pub=1&dver=2.1.0
#include<reg52.h> #include<present.h> sbit Buzz=P3^7; uchar flag=16,sign=1; uchar time=0; //流水灯定时 uint *pf=Happy_Birthday; uint *p=Happy_Birthday; void init_devices(void) { TMOD=0x11; TH1=0x71; TL1=0x48; //40ms的定时 TH0=0x00; TL0=0x00; //初始化 IT1=1; EA=1; EX1=1; ET0=1; ET1=1; } void int1() interrupt 2 using 0 { sign++; //下一曲 switch(sign) { case 1:TR0=1;pf=Happy_Birthday;flag=16;break; case 2:pf=Legend;flag=8;break;