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

 时间:2026-04-28 10:50:34

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

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

  • proteus仿真蜂鸣器怎么发声
  • Altium Designer怎么设置关于图形编辑
  • Quartus II怎么快速设置仿真时钟波形
  • Z变换定义以及怎样进行Z变换?
  • Proteus8.4仿真Arduino LED闪烁
  • 热门搜索
    胡萝卜用英语怎么说 culture怎么读 第一的英文怎么写 cpu型号怎么看 王字怎么写好看 qq怎么群发 红米手机怎么截图 仝卓怎么读 干鱿鱼怎么做好吃 怎么做红烧肉好吃