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 仿真电路如下图所示:

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:26
阅读量:126
阅读量:82
阅读量:66
阅读量:59