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

正文內(nèi)容

畢業(yè)論文-基于ucgui圖形系統(tǒng)的機(jī)械時(shí)鐘的實(shí)現(xiàn)(編輯修改稿)

2025-07-09 22:52 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 像素為單位) rx X軸半徑(像素)。 ry Y軸半徑(像素) a0 起始角度(度) a1 終止角度(度) 備注: 現(xiàn)在不使用參數(shù) ry,取而代之的是參數(shù) rx,處理的參數(shù) rx/ry不能超過(guò) 180,因?yàn)槟菢訉⑹褂玫綄?dǎo)致溢出錯(cuò)誤的整數(shù)運(yùn)算。 滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 21 第四章 機(jī)械 時(shí)鐘 的實(shí)現(xiàn) 機(jī)械時(shí)鐘的原理圖 時(shí)鐘表設(shè)計(jì)思想: 第一步,確定秒鐘的走時(shí)。將圓等分成 60份每過(guò)一 秒,秒鐘要轉(zhuǎn) 1/60 個(gè)圓,亦即一等份。 第二步,確定分鐘的走時(shí)。將圓等分成 60份每過(guò)一 分,分鐘要轉(zhuǎn) 1/60 個(gè)圓,亦即一等份。分鐘自己走的再加秒鐘的,才是分鐘此時(shí) 的 位置。 第三步,確定時(shí)鐘的走時(shí)。將圓等分成 12 等分 .每過(guò)一時(shí),時(shí)鐘走一等份。得加上分鐘,秒鐘的走時(shí),才是此刻時(shí)鐘的位置。時(shí)鐘走動(dòng)與系統(tǒng)時(shí)間聯(lián)系:每過(guò)一秒畫(huà)出秒針,并除去前一秒的秒針,分針秒針同樣可用。畫(huà)線函數(shù)與時(shí)間聯(lián)系使用變量 機(jī)械時(shí)鐘的算法流程圖和代碼 。 圖 41 滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 22 include include void DrawArcScale(void) { int x0 = 150。 int y0 = 120。 int i,j=0。 int Hour=00,Sec=00, Min=00。 unsigned num[]={12,11,10,9,8,7,6,5,4,3,2,1}。 GUI_Init()。 GUI_SetBkColor(GUI_LIGHTBLUE)。 GUI_Clear()。 //繪畫(huà)表盤(pán) GUI_SetColor(GUI_LIGHTRED)。 GUI_SetPenSize(5)。 GUI_DrawArc( x0,y0,100, 100,0, 360 )。 GUI_SetFont(amp。GUI_Font8x16)。 for (i=0。 i= 59。 i++) { int x,y,x4,y4。 float a,e。 a= (i*6)*。 e= (90+i*6)*。 x =90*cos(a)+x0。 y =90*sin(a)+y0。 x4 =80*cos(e)+x05。 y4 =80*sin(e)+y08。 GUI_SetColor(GUI_BLUE)。 if (i%5 == 0) 滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 23 GUI_SetPenSize( 5)。 GUI_DrawPoint(x,y)。 GUI_DispStringAt((const char *)num[j],x4,y4)。 j++。 } else { GUI_SetPenSize( 3 )。 GUI_DrawPoint(x,y)。 } } while(1) { int j=0,x1,y1,x2,y2,x3,y3。 float b,c,d。 for(i=0。i60*60*12,Sec59。i++) { b= (90i*6)*。 c= (90i*6/60)*。 d= (90i*6/60/12)*。 x1 =80*cos(b)+x0。 y1 =80*sin(b)+y0。 x2 =75*cos(c)+x0。 y2 =75*sin(c)+y0。 x3 =50*cos(d)+x0。 y3 =50*sin(d)+y0。 滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 24 GUI_SetPenSize(3)。 GUI_SetColor(GUI_YELLOW)。 GUI_DrawLine( x0, y0, x2, y2)。 GUI_SetPenSize(5)。 GUI_SetColor(GUI_LIGHTMAGENTA)。 GUI_DrawLine( x0, y0, x3, y3)。 //秒針 ++Sec。 GUI_Delay(1)。 GUI_SetColor(GUI_GREEN)。 GUI_DispDecAt(Sec,165,55,2)。 GUI_SetPenSize(2)。 GUI_DrawLine( x0, y0, x1, y1)。 GUI_SetColor(GUI_LIGHTBLUE)。 GUI_DrawLine( x0, y0, x1, y1)。 GUI_SetPenSize(3)。 GUI_DrawLine( x0, y0, x2, y2)。 GUI_SetPenSize(5)。 GUI_DrawLine( x0, y0, x3, y3)。 if(j==60*12,Min==60) //時(shí)針 { j=0。 Min=0。 ++Hour。 GUI_SetColor(GUI_GREEN)。 GUI_DispDecAt(Hour,117,55,2)。 }滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 25 if(Hour==24) Hour=0,Min=0。 GUI_SetColor(GUI_GREEN)。 GUI_DispDecAt(Hour,117,55,2)。 GUI_DispDecAt(Min,142,55,2)。 if(Sec%2==0) { GUI_SetColor(GUI_RED)。 GUI_DispCharAt(39。:39。,157,55)。 } elseif(Sec%2==0) { GUI_SetColor(GUI_RED)。//設(shè)置顏色為紅色 GUI_DispCharAt(39。:39。,133,57)。 } else GUI_DispCharAt(39。 39。,132,55)。//在固定的坐標(biāo)中顯示字符 } } } GUI_DispCharAt(39。 39。,157,55)。//在固定的坐標(biāo)中顯示字符 void main(void)//main 函數(shù) { GUI_Init()。//初始化 DrawArcScale()。//DrawArcScale()的調(diào)用 while(1) GUI_Delay(100)。//延時(shí)函數(shù) } 滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 26 運(yùn)行結(jié)果圖 圖 42滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 27 第五章 總結(jié) 遇到的問(wèn)題及解決方法 application 中多余的文件刪去,導(dǎo)致文件編譯出現(xiàn)錯(cuò)誤。 解決辦法:把文件中 多余的文件刪除 : unsigned int num[]={12,11,10,9,8,7,6,5,4,3,2,1}。 解 決辦法: 定義 unsigned num[]={12,11,10,9,8,7,6,5,4,3,2,1}。即可 ,分針以及秒針的換算在語(yǔ)法上出現(xiàn)錯(cuò)誤 4. main 函數(shù)中 while()錯(cuò)誤:使指針無(wú)法顯示出來(lái) void main(void) { GUI_Init()。 DrawArcScale()。 GUI_Delay(10000)。 while(1) { GUI_Delay(10000)。 } } 解決辦法:修改成一下內(nèi)容即可 void main(void) { GUI_Init()。 DrawArcScale()。 GUI_Delay(10000)。 while(1) GUI_Delay(10000)。 } 滁州職業(yè)技術(shù)學(xué)院嵌入式系統(tǒng)工程專(zhuān)業(yè)畢業(yè)論文 28 致謝 衷心感謝我的導(dǎo)師。她嚴(yán)肅的科學(xué)態(tài)度,嚴(yán)謹(jǐn)?shù)闹螌W(xué)精神,精益求精的工作作風(fēng),深深地感染和激勵(lì)勵(lì)著我。導(dǎo)師學(xué)識(shí)淵博,品德高尚,平易近人,在我學(xué)習(xí)期間不僅傳授了做學(xué)問(wèn)的秘訣,還傳授了做 人的準(zhǔn)則,這些都將使我終生受益。在我畢業(yè)論文的寫(xiě)作過(guò)程中?老師始終給予我精心的指導(dǎo)和不懈的支持。她循循善誘的教導(dǎo)和不拘一格的思路給予我無(wú)盡的啟迪。在此謹(jǐn)向老師致以誠(chéng)摯的謝意和祟高的敬意。 同時(shí),我也要向身邊的同學(xué)表示感謝,因?yàn)檎撐闹心承┯^點(diǎn)提出和他們的討論是分不開(kāi)的 。 路漫漫其修遠(yuǎn)兮,吾將上下而求索。我愿在未來(lái)的學(xué)習(xí)和研究過(guò)程中,以更加豐厚的成果來(lái)答謝曾經(jīng)關(guān)心、幫助和支持過(guò)我的老師和同學(xué)。 參考文獻(xiàn) [1] 《 嵌入式 μC/GUI 圖形系統(tǒng)》校本教材 [2]《 μC/GUI 中文手冊(cè)》校本教材 [3]《嵌入式系統(tǒng)概述》 [4]《嵌入式系統(tǒng)軟件設(shè)計(jì)與實(shí)現(xiàn)》 [5]《 ucgui 開(kāi)源設(shè)計(jì)文檔》 29 指導(dǎo)教師評(píng)語(yǔ): 簽 名: 日 期: 年 月 日 畢業(yè)論文成 績(jī)?cè)u(píng)定: 蓋 章: 日 期: 年 月 日 29 為你提供優(yōu)秀的畢業(yè)論文參考資料,請(qǐng)您刪除以下內(nèi)容, O(∩_∩)O謝謝!??! 2 Many people have the same mixed feelings when planning a trip during Golden Week. With heaps of time, the sevenday Chinese為你提供優(yōu)秀的畢業(yè)論文設(shè)計(jì)參考資料,請(qǐng)您刪除一下內(nèi)容, O(∩_∩)O謝謝?。?! National Day holiday could be the best occasion to enjoy a destination. However, it can also be the easiest way to ruin how you feel about a place and you may bee more fatigued after the holiday, due to battling the large crowds. During peak season, a dream about a place can turn to nightmare without careful planning, especially if you travel with children and older people. As most Chinese people will take the holiday to visit domestic tourist destinations, crowds and busy traffic are inevitable at most places. Also to be expected are increasing transport and acmodation prices, with the possibility that there will be no rooms available. It is also mon that you39。 ll wait in the line for one hour to get a ticket, and another two hours at the site, to only see a tiny bit of the place due to the crowds. Last year, 428 million tourists traveled in China over the weeklong holiday in October. Traveling during this period is a matter that needs thorough preparation. If you are short on time to plan the uping Golden Week it may not be a bad idea to avoid some of the most cro
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1