?? main.c
字號(hào):
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); //點(diǎn)亮第1個(gè)LED
Delay(2000);
Led_Display(0x02); //點(diǎn)亮第2個(gè)LED
Delay(2000);
Led_Display(0x04); //點(diǎn)亮第3個(gè)LED
Delay(2000);
Led_Display(0x00); //關(guān)閉所有燈
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);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -