#includereg51.hvoiddelay(unsignedinti);sbitbtn1=P3^2;sbitbtn2=P3^3;#defineLP1voidmain(){btn1=1;btn2=1;while(1){if(btn1==0){L=0xFE;delay(50000);L=0xFD;delay(25000);L=0xFB;delay(25000);L=0xF7;delay(25000);L=0xEF;delay(25000);L=0xDF;delay(25000);L=0xBF;delay(25000);L=0x7F;delay(25000);}else{L=0xFF;}if(btn2==0){L=0x7F;delay(25000);L=0xBF;delay(25000);L=0xDF;delay(25000);L=0xEF;delay(25000);L=0xF7;delay(25000);L=0xFB;delay(25000);L=0xFD;delay(25000);L=0xFE;delay(25000);}else{L=0xFF;}}while(1){;}}voiddelay(unsignedinti){while(--i);}