freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計(jì)-基于51單片機(jī)的多功能迷你跑馬音樂(lè)盒設(shè)計(jì)-文庫(kù)吧

2025-01-02 00:45 本頁(yè)面


【正文】 oad Mode TH2 = RCAP2H = 0xFC。 //重裝值 ,初始值 TL2 = RCAP2L = 0x18。 ET2=1。 //定時(shí)器 2 中斷允許 TR2 = 1。 //定時(shí)器 2 啟動(dòng) EA=1。 } unsigned int code SpeedCode[]={ 1, 2, 3, 5, 8, 10, 14, 17, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200, 300, 400, 500, 600, 700, 800, 900,1000}。//30 void SetSpeed(unsigned char Speed) { SystemSpeed =SpeedCode[Speed]。 } void LEDShow(unsigned int LEDStatus) { P1 = ~(LEDStatusamp。0x00FF)。 P0 = ~((LEDStatus8)amp。0x00FF)。 } void InitialCPU(void) { RunMode = 0x00。 Timer0Count = 0。 SystemSpeedIndex = 9。 第 11 頁(yè) 共 21 頁(yè) P1 = 0x00。 P0 = 0x00。 P2 = 0xFF。 P3 = 0x00。 Delay1ms(500)。 P1 = 0xFF。 P0 = 0xFF。 P2 = 0xFF。 P3 = 0xFF。 SetSpeed(SystemSpeedIndex)。 Display(RunMode)。 } //Mode 0 unsigned int LEDIndex = 0。 bit LEDDirection = 1,LEDFlag = 1。 void Mode_0(void) { LEDShow(0x0001LEDIndex)。 LEDIndex = (LEDIndex+1)%16。 } //Mode 1 void Mode_1(void) { LEDShow(0x8000LEDIndex)。 LEDIndex = (LEDIndex+1)%16。 } //Mode 2 void Mode_2(void) { if(LEDDirection) LEDShow(0x0001LEDIndex)。 else LEDShow(0x8000LEDIndex)。 if(LEDIndex==15) LEDDirection = !LEDDirection。 LEDIndex = (LEDIndex+1)%16。 } //Mode 3 void Mode_3(void) { if(LEDDirection) LEDShow(~(0x0001LEDIndex))。 else LEDShow(~(0x8000LEDIndex))。 if(LEDIndex==15) LEDDirection = !LEDDirection。 LEDIndex = (LEDIndex+1)%16。 } //Mode 4 void Mode_4(void) { if(LEDDirection) { if(LEDFlag) LEDShow(0xFFFELEDIndex)。 else LEDShow(~(0x7FFFLEDIndex))。 } else { if(LEDFlag) LEDShow(0x7FFFLEDIndex)。 else LEDShow(~(0xFFFELEDIndex))。 } if(LEDIndex==15) { LEDDirection = !LEDDirection。 if(LEDDirection) LEDFlag = !LEDFlag。 } LEDIndex = (LEDIndex+1)%16。 } //Mode 5 void Mode_5(void) { if(LEDDirection) LEDShow(0x000FLEDIndex)。 else LEDShow(0xF000LEDIndex)。 if(LEDIndex==15) LEDDirection = !LEDDirection。 LEDIndex = (LEDIndex+1)%16。 } 第 12 頁(yè) 共 21 頁(yè) //Mode 6 void Mode_6(void) { if(LEDDirection) LEDShow(~(0x000FLEDIndex))。 else LEDShow(~(0xF000LEDIndex))。 if(LEDIndex==15) LEDDirection = !LEDDirection。 LEDIndex = (LEDIndex+1)%16。 } //Mode 7 void Mode_7(void) { if(LEDDirection) LEDShow(0x003FLEDIndex)。 else LEDShow(0xFC00LEDIndex)。 if(LEDIndex==9) LEDDirection = !LEDDirection。 LEDIndex = (LEDIndex+1)%10。 } //Mode 8 void Mode_8(void) { LEDShow(++LEDIndex)。 } void Timer0EventRun(void) { if(RunMode==0x00) { Mode_0()。 } else if(RunMode ==0x01) { Mode_1()。 } else if(RunMode ==0x02) { Mode_2()。 } else if(RunMode ==0x03) { Mode_3()。 } else if(RunMode ==0x04) { Mode_4()。 } else if(RunMode ==0x05) { Mode_5()。 } else if(RunMode ==0x06) { Mode_6()。 } else if(RunMode ==0x07) { Mode_7()。 } else if(RunMode ==0x08) { Mode_8()。 } } void Timer2(void) interrupt 5 using 3 { TF2 = 0。 //中斷標(biāo)志清除 ( Timer2 必須軟件清標(biāo)志 !) if(++Timer0Count=SystemSpeed) { Timer0Count = 0。 Timer0EventRun()。 } } unsigned char MusicIndex = 0。 void KeyDispose(unsigned char Key) { if(Keyamp。0x01) { LEDDirection = 1。 LEDIndex = 0。 LEDFlag = 1。 第 13 頁(yè) 共 21 頁(yè) RunMode = (RunMode+1)%10。 Display(RunMode)。 if(RunMode==0x09) TR2 = 0。 else TR2 = 1。 } if(Keyamp。0x02) { if(RunMode==0x09) { MusicIndex =(MusicIndex+MUSICNUMBER1)%MUSICNUMBER。 } else { if(SystemSpeedIndex0) { SystemSpeedIndex。 SetSpeed(SystemSpeedIndex)。 } else { LEDFlash(6)。 } } } if(Keyamp。0x04) { if(RunMode==0x09) { MusicIndex =(MusicIndex+1)%MUSICNUMBER。 } else { if(SystemSpeedIndex28) { ++SystemSpeedIndex。 SetSpeed(SystemSpeedIndex)。 } else { LEDFlash(6)。 } } } } //*****************************Music****************************************************** //揮著翅膀的女孩 unsigned char code Music_Girl[]={ 0x17,0x02, 0x17,0x03, 0x18,0x03, 0x19,0x02, 0x15,0x03, 0x16,0x03, 0x17,0x03, 0x17,0x03, 0x17,0x03, 0x18,0x03, 0x19,0x02, 0x16,0x03, 0x17,0x03, 0x18,0x02, 0x18,0x03, 0x17,0x03, 0x15,0x02, 0x18,0x03, 0x17,0x03, 0x18,0x02, 0x10,0x03, 0x15,0x03, 0x16,0x02, 0x15,0x03, 0x16,0x03, 0x17,0x02, 0x17,0x03, 0x18,0x03, 0x19,0x02, 0x1A,0x03, 0x1B,0x03, 0x1F,0x03, 0x1F,0x03, 0x17,0x03, 0x18,0x03, 0x19,0x02, 0x16,0x03, 0x17,0x03, 0x18,0x03, 0x17,0x03, 0x18,0x03, 0x1F,0x03, 0x1F,0x02, 0x16,0x03, 0x17,0x03, 第 14 頁(yè) 共 21 頁(yè) 0x18,0x03, 0x17,0x03, 0x18,0x03, 0x20,0x03, 0x20,0x02, 0x1F,0x03, 0x1B,0x03, 0x1F,0x66, 0x20,0x03, 0x21,0x03, 0x20,0x03, 0x1F,0x03, 0x1B,0x03, 0x1F,0x66, 0x1F,0x03, 0x1B,0x03, 0x19,0x03, 0x19,0x03, 0x15,0x03, 0x1A,0x66, 0x1A,0x03, 0x19,0x03, 0x15,0x03, 0x15,0x03, 0x17,0x03, 0x16,0x66, 0x17,0x04, 0x18,0x04, 0x18,0x03,
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1