51单片机:led灯闪烁10次后熄灭
#include<reg52.h>#define uint unsigned int //宏定义#define uchar unsigned char //宏定义sbit led=P1^0; /*定义P1.0 在芯片引脚p1.0引出led元件*/void delayms(uint xms) //延时函数{ uint i,j; for(i=xms;i>...