2822| 5
|
求高手帮忙改一段代码 |
10黑币
最佳答案#include
#include
#define uchar unsigned char
sbit button = P3^2;//外部中断P3^2和P3^3
int b=1;
bit press = 1;
uchar luishui = 0xfe;
void Delay(uchar z)
{
uchar x, y;
for(x = z; x > 0; x--) for(y = 255; y > 0; y--);
}
void main()
{
int i=0;
IT0 = 1;
EX0 = 1;
EA = 1;
while(press) P1=0xff;
while(!press)
{
b=1;
luishui=0xfe;
for(i=0;i
| ||
| ||
| ||
RE: 求高手帮忙改一段代码
| ||
| ||