51单片机怎么在定时器流水灯里加按键控制程序 怎么让key1按下去向左流水而key2按下去向右流水? 已经定义好key ↓↓↓↓↓↓↓↓↓↓↓↓↓↓ sbit key1=P3^2; sbit key2=P3^3; void time0init1() interrupt 1 { static u16 i=0,n; i++; if(i == 5000) { LED=~(0x01<<n); if(++n==8)n=0; i=0; } TH0=0xfc; TL0=0x18; }