网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

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

时间:2024-10-12 05:53:40

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语言代码
© 五度知识库