按鍵燈的亮滅
sbit led0 = P2^6; //要控制的LED燈
sbit led1 = P2^1;
sbit led2 = P2^2;
sbit led3 = P2^3;
sbit led4 = P2^4;
sbit led5 = P2^5;
sbit K0= P3^2;
sbit K1= P3^3;//定義io口
void main(void)
EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 按鍵燈的亮滅
sbit led0 = P2^6; //要控制的LED燈
sbit led1 = P2^1;
sbit led2 = P2^2;
sbit led3 = P2^3;
sbit led4 = P2^4;
sbit led5 = P2^5;
sbit K0= P3^2;
sbit K1= P3^3;//定義io口
void main(void)
評論