|
单片机C语言实例-307-文件包应用举例
#include<AT89X51.h>
#include<ctype.h>
void main(void)
{
P3_0=0; //将P3.0引脚置低电平,LED点亮
P3_1=0; //将P3.0引脚置低电平,LED点亮
P3_2=0; //将P3.0引脚置低电平,LED点亮
P3_3=0; //将P3.0引脚置低电平,LED点亮
P3_4=1; //将P3.4引脚置高电平,LED熄灭
P3_5=1; //将P3.5引脚置高电平,LED熄灭
P3_6=1; //将P3.7引脚置高电平,LED熄灭
P3_7=1; //将P3.7引脚置高电平,LED熄灭
while(1)
;
}
更多详情参考附件文档
|
|