#include
#define uchar unsigned char
#define uint unsigned int
void delay(uchar z)
{
unsigned int x,y;
for(x=0;x
}
sbit a=P1^0;
sbit b=P1^1;
sbit c=P1^2;
void main()
{
while(1)
{
if(b==1)
a=0;
delay(100);
a=1;
if(b==0)
c=0;
delay(100);
c=1;
}
}
读个IO有这么难吗?