#include<reg51.h> char xianshima[2]={0xc0,0xf9}; void delay(int i) { while(i--) { ; } } void main() { int j; while(1) { for(j=0;j<=1;j++) { P2=xianshima[j]; delay(50000); } } }