main.c
来自「初学者的第一个成功之作,希望大家共同学习共同进步.其中的S3C44B0X启动代码」· C语言 代码 · 共 42 行
C
42 行
void Delay(int time)
{
int i;
int delayLoopCount=400;
for(;time>0;time--)
for(i=0;i<delayLoopCount;i++);
}
void main(void)
{
while(1) {
Led_Display(0x01); //点亮第1个LED
Delay(2000);
Led_Display(0x02); //点亮第2个LED
Delay(2000);
Led_Display(0x04); //点亮第3个LED
Delay(2000);
Led_Display(0x00); //关闭所有灯
Delay(2000);
Beep(1);
Led_Display(0x04);
Delay(2000);
Led_Display(0x02);
Delay(2000);
Led_Display(0x01);
Delay(2000);
Led_Display(0x00);
Delay(2000);
Beep(0);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?