按照你的要求用延时比用循环好void delay(unsigned int times) {} main() { while(1) { P3_0=1; delay(i); P3_0=0; delay(j) } } 延时时间自己找 这样可能会好点 发表时间:2006年7月7日10:34:30