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

正文內(nèi)容

基于單片機(jī)的多功能智能小車畢設(shè)畢業(yè)論文(文件)

 

【正文】 。 DisplayString(0x0,1,Next Yes)。 //這里沒有速度設(shè)置,因?yàn)槟J(rèn)速度就是Low break。 WriteCmd(LCD_CLS)。 //延時(shí)消除抖動(dòng) while(1) { if (Next==True) //如果再一次按下Next鍵,則跳出 break。Tlx[1]=0xc0。Tlx[3]=0x78。 break。 //標(biāo)志模式選擇和速度選擇完畢 Running=True。 DisplayString(0x0,1, Line )。 DisplayString(0x0,1, Curve )。 DisplayString(0x0,1, AutoMode )。 DisplayString(0x0,1, Normal )。 DisplayString(0x0,1, Low )。 DisplayString(0x0,1, High )。 //初始化所有中斷 DisplayString(0x0,0,Left Times To Go)。)。 Delay(100)。 if (SelectedMode==Lineamp。 while(flag5) { if(AutoMode==1) //自動(dòng)模式 { switch(PassLineID) { case 0 :{ if(IsT0INT==1) {P01=P02=P04=0。 case 1 :{ P01=P02=P03=0。P03=1。 if(IsT0INT==1) {P03=1。P04=0。Round!=0amp。Back!=0) { if(Backid==1) {P01=1。} else {P01=0。} Back=1。P04=0。P04=0。P04=0。P04=0。P03=1。P02=0。P02=1。} else {P01=0。} } } } } } } if (IsT1INT==1) { IsT1INT=0。 P04=1。 P03=0。 //關(guān)T0中斷 ET1=0x0。 //默認(rèn)情況下直線模式會(huì)自動(dòng)顯示各個(gè)區(qū)域經(jīng)過(guò)的時(shí)間 WriteCmd(LCD_CLS)。 Delay(200)。s39。 if (LowSpeedArea1PassTime 9) //通過(guò)第一個(gè)低速區(qū)的時(shí)間超過(guò)s DisplaySingleChar(0x0B,1,LowSpeedArea1PassTime/10+0x30)。 Delay(200)。s39。 if ( HighSpeedAreaPassTime 9) //通過(guò)高速區(qū)的時(shí)間超過(guò)s DisplaySingleChar(0x0B,1,HighSpeedAreaPassTime/10+0x30)。 Delay(200)。s39。 if ( LowSpeedArea2PassTime 9) //通過(guò)第二個(gè)低速區(qū)的時(shí)間超過(guò)s DisplaySingleChar(0x0B,1,LowSpeedArea2PassTime/10+0x30)。 /*首先顯示主菜單,然后顯示第一個(gè)選項(xiàng)*/ DisplayString(0x0,0,Now Choose what )。 DisplayString(0x0,0, Costed Time )。 if (SelectedShow==True) break。 WriteCmd(LCD_CLS)。 ReturnSelection=True。 WriteCmd(LCD_CLS)。 ReturnSelection=False。 if (Selected==True) break。 //按下了Next鍵,那么這個(gè)時(shí)候關(guān)閉返回鍵的功能 if (AVGSpeedShow==False) //還沒有顯示AVGSpeed選項(xiàng),顯示它 { //即第一次選擇了確定鍵 WriteCmd(LCD_CLS)。 //顯示了AVGSpeed,則表明TotalDistance還沒有顯示 Delay(250)。 TotalDistanceShow=True。 Selected=False。 DisplayAVGSpeed()。 //延時(shí)消除抖動(dòng) } TotalDistanceShow=False。 if (SelectedShow==True) break。 //按下了Next鍵,那么這個(gè)時(shí)候關(guān)閉返回鍵的功能 if (TotalDistanceShow==True) ReturnMain=True。 TotalDistanceShow=True。 Selected=False。 DisplayAVGSpeed()。 //延時(shí)消除抖動(dòng) } if (TotalDistanceShow==True) { WriteCmd(LCD_CLS)。 ReturnSelection=True。 } /*第四次按鍵*/ while(1) { if (Next==True) break。 ReturnSelection=False。 TotalDistanceShow=True。 Selected=False。 DisplayDistance()。 //延時(shí)消除抖動(dòng) } } } if (ReturnMain==True) //按下了返回鍵,返回主菜單 { ReturnMain=False。 } if (Next==True) //所有菜單項(xiàng)已經(jīng)顯示完畢,返回主菜單 { Next=False。 } } if (SelectedShow==True) { SelectedShow=False。 if (ReturnSelection==False) { if (TotalDistanceShow==True) { WriteCmd(LCD_CLS)。 ReturnSelection=True。 } if (Next==True) { Next=False。 SelectedReturn=False。}/****************************************************************************************\** LCD驅(qū)動(dòng)模塊 **\****************************************************************************************//* LCD初始化函數(shù)*/void LCDInit(void){ //三次顯示模式設(shè)置 LCD_Data=0。 Delay(5)。 WriteCmd(LCD_Init)。 //光標(biāo)移動(dòng)設(shè)置 WriteCmd(LCD_DispCtr)。 //關(guān)顯示 WriteCmd(LCD_CLS)。 Delay(5)。 Delay(5)。 } continue。 ReturnSelection=False。 //延時(shí)消除抖動(dòng) } } } /*第六次按鍵*/ while(1) { if (Next==True) break。 DisplayDistance()。 Selected=False。 ReturnSelection=False。 } /*第五次按鍵*/ while(1) { if (Next==True) break。 ReturnSelection=True。 if (ReturnSelection==False) { if (TotalDistanceShow==True) { WriteCmd(LCD_CLS)。 //延時(shí)消除抖動(dòng) } } if (SelectedShow==True) { SelectedShow=False。 DisplayString(0x0,0, Total Distance )。 } if (Next==True) //所有菜單項(xiàng)已經(jīng)顯示完畢,返回主菜單 { Next=False。 //延時(shí)消除抖動(dòng) } } } if (ReturnMain==True) //按下了返回鍵,返回主菜單 { ReturnMain=False。 DisplayDistance()。 ReturnSelection=True。 if (ReturnSelection==False) { if (TotalDistanceShow==False) //表明AVGSpeed選項(xiàng)的內(nèi)容還沒有顯示 { WriteCmd(LCD_CLS)。 //延時(shí)消除抖動(dòng) } } if (Selected==True) //按下了確定鍵或返回鍵 { SelectedShow=False。 DisplayString(0x0,0, Total Distance )。 ReturnMain=False。 continue。 ReturnSelection=True。 if (ReturnSelection==False) { WriteCmd(LCD_CLS)。 //延時(shí)消除抖動(dòng) } } if (Selected==True) //按下了確定鍵或返回鍵 { SelectedShow=False。 DisplayString(0x0,0, Total Distance )。 DisplayString(0x0,1,Next Show)。 ReturnMain=False。 //表明AVGSpeed選項(xiàng)已經(jīng)顯示過(guò)了 Delay(250)。 DisplayString(0x0,1,Next Show)。 Delay(250)。 DisplayTime()。 SelectedReturn=False。 Delay(250)。 Delay(100)。 /* 菜單選擇你想要看的內(nèi)容總時(shí)間、總路程以及平均速度 */ ChoosingDisplay=True。 LowSpeedArea2PassTime=LowSpeedArea2EndTimeHighSpeedAreaEndTime。 DisplayString(0,1, Costed )。 Delay(200)
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1