Proteus 软件仿真第一个LED灯的电路图C语言代码
1、C语言代码为。。。【高电位点亮LED,控制输出口是P1^3】
#include<reg51.h>
sbit led = P1^3;void delay(unsigned char ms){ unsigned char x,y; for(x = ms;x > 0;x--) for(y = 110;y > 0;y--) {;}}
void main(void){ led = 0; delay(500); while(1) { led = 1; }}
2、Proteus 仿真电路如下图所示:

阅读量:159
阅读量:110
阅读量:34
阅读量:27
阅读量:185