Proteus 软件仿真第一个LED灯的电路图C语言代码

2025-03-17 12:46:21

1、C语言代码为。。。【高电位点亮LED,控制输出口是P1^3】#include<reg51.h>sbit led = P1^3;vo足毂忍珩id 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 仿真电路如下图所示:

Proteus 软件仿真第一个LED灯的电路图C语言代码
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢