?? aaa.c
字號(hào):
#include <REG52.H>
void Delay(unsigned int DelayTime )
{ if( DelayTime == 0 )return;
while( DelayTime != 0)
{ DelayTime--;}
}
void mian()
{ data unsigned char LedBuff;
for(;;)
{ LedBuff = 0X01; P1 = LedBuff;
Delay(100000);
LedBuff = 0X02; P1 = LedBuff;
Delay(100000);
LedBuff = 0X04; P1 = LedBuff;
Delay(100000);
LedBuff = 0X08; P1 = LedBuff;
Delay(100000);
LedBuff = 0X10; P1 = LedBuff;
Delay(100000);
LedBuff = 0X20; P1 = LedBuff;
Delay(100000);
LedBuff = 0X40; P1 = LedBuff;
Delay(100000);
LedBuff = 0X80; P1 = LedBuff;
Delay(100000);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -