#include<reg51.h> typedef unsigned char uint8; typedef unsigned int uint16;
void delay(uint16 x) { uint8i,j; for(i= x; i > 0; i --) for(j= 114; j > 0; j --); }
void main() { uint8b = 0, way = 0; while(1) { if(way == 0) P0=1; // delay(200); //编译不过? else P0=0; delay(200);
}
}
|