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

正文內(nèi)容

單片機(jī)控制的led點(diǎn)陣顯示畢業(yè)設(shè)計(jì)(編輯修改稿)

2024-08-16 19:50 本頁面
 

【文章內(nèi)容簡介】 碼 漢字的機(jī)內(nèi)碼是指在計(jì)算機(jī)中表示一個漢字的編碼。機(jī)內(nèi)碼與區(qū)位碼稍有區(qū)別。如上所述,漢字區(qū)位 碼的區(qū)碼和位碼的取值均在 1~94 之間,如直接用區(qū)位碼作為機(jī)內(nèi)碼,就會與基本 ASCII 碼混淆。為了避免機(jī)內(nèi)碼與基本 ASCII 碼的沖突,需要避開基本 ASCII 碼中的控制碼 (00H~1FH),還需與基本 ASCII 碼中的字符相區(qū)別。為了實(shí)現(xiàn)這兩點(diǎn),可以先在區(qū)碼和位碼分別加上 20H,在此基礎(chǔ)上再加80H(此處“ H”表示前兩位數(shù)字為十六進(jìn)制數(shù) )。 我們可以通過這個軟件將我們所要的使用的“機(jī)械電子”這四個字的代碼給得出來,方便我們進(jìn)行 C語言編程。 程序編寫 以下是 8*8點(diǎn)陣 LED字符顯示器完整的 C程序清單: include define char unsigned char define int unsigned int /***********機(jī)械電子 代碼 ********/ char key,keytmp。 char code distab[40]= { /* 文字 : 機(jī) */ 13 /* 宋體 12。 此字體下對應(yīng)的點(diǎn)陣為:寬 x高 =16x16 */ 0x10,0x00,0x11,0xF0,0x11,0x10,0x11,0x10,0xFD,0x10,0x11,0x10,0x31,0x10,0x39,0x10, 0x55,0x10,0x55,0x10,0x91,0x10,0x11,0x12,0x11,0x12,0x12,0x12,0x12,0x0E,0x14,0x00 /* 文字 : 械 */ /* 宋體 12。 此字體下對應(yīng)的點(diǎn)陣為:寬 x高 =16x16 */ 0x10,0x10,0x10,0x14,0x10,0x12,0x10,0x10,0xFB,0xFE,0x10,0x10,0x31,0x50,0x39,0x54, 0x57,0xF4,0x51,0x54,0x91,0x54,0x11,0x48,0x12,0x4A,0x12,0x5A,0x14,0x26,0x10,0x42 /* 文字 : 電 */ /* 宋體 12。 此字體下對應(yīng)的點(diǎn)陣為:寬 x高 =16x16 */ 0x01,0x00,0x01,0x00,0x01,0x00,0x3F,0xF8,0x21,0x08,0x21,0x08,0x21,0x08,0x3F,0xF8, 0x21,0x08,0x21,0x08,0x21,0x08,0x3F,0xF8,0x21,0x0A,0x01,0x02,0x01,0x02,0x00,0xFE /* 文字 : 子 */ /* 宋體 12。 此字體下對應(yīng)的點(diǎn)陣為:寬 x高 =16x16 */ 0x00,0x00,0x7F,0xF8,0x00,0x10,0x00,0x20,0x00,0x40,0x01,0x80,0x01,0x00,0xFF,0xFE, 14 0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x05,0x00,0x02,0x00}。 /***********繞行跑馬燈代碼 ********/ char code distac[512]= {0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,//*****1****// 0x7f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,//*****2****// 0x7f,0x7f,0x7f,0xff,0xff,0xff,0xff,0xff,//*****3****// 0x7f,0x7f,0x7f,0x7f,0xff,0xff,0xff,0xff,//*****4****// 0x7f,0x7f,0x7f,0x7f,0x7f,0xff,0xff,0xff,//*****5****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0xff,0xff,//*****6****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0xff,//*****7****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,//*****8****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x3f,//*****9****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x1f,//*****10****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x0f,//*****11****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x07,//*****12****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x03,//*****13****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x01,//*****14****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x00,//*****15****// 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7e,0x00,//*****16****// 15 0x7f,0x7f,0x7f,0x7f,0x7f,0x7e,0x7e,0x00,//*****17****// 0x7f,0x7f,0x7f,0x7f,0x7e,0x7e,0x7e,0x00,//*****18****// 0x7f,0x7f,0x7f,0x7e,0x7e,0x7e,0x7e,0x00,//*****19****// 0x7f,0x7f,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****20****// 0x7f,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****21****// 0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****22****// 0x7c,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****23****// 0x78,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****24****// 0x70,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****25***// 0x60,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****26****// 0x40,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****27****// 0x00,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****28****// 0x00,0x3e,0x7e,0x7e,0x7e,0x7e,0x7e,0x00,//*****29****// 0x00,0x3e,0x3e,0x7e,0x7e,0x7e,0x7e,0x00,//*****30****// 0x00,0x3e,0x3e,0x3e,0x7e,0x7e,0x7e,0x00,//****31****// 0x00,0x3e,0x3e,0x3e,0x3e,0x7e,0x7e,0x00,//*****32****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x7e,0x00,//*****33****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x00,//*****34****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x1e,0x00,//*****35****// 16 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x0e,0x00,//*****36****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x06,0x00,//*****37****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x02,0x00,//*****38****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3e,0x00,0x00,//*****39****// 0x00,0x3e,0x3e,0x3e,0x3e,0x3c,0x00,0x00,//*****40****// 0x00,0x3e,0x3e,0x3e,0x3c,0x3c,0x00,0x00,//*****41****// 0x00,0x3e,0x3e,0x3c,0x3c,0x3c,0x00,0x00,//*****42****// 0x00,0x3e,0x3c,0x3c,0x3c,0x3c,0x00,0x00,//*****43****// 0x00,0x3c,0x3c,0x3c,0x3c,0x3c,0x00,0x00,//*****44****// 0x00,0x38,0x3c,0x3c,0x3c,0x3c,0x00,0x00,//*****45****// 0x00,0x30,0x3c,0x3c,0x3c,0x3c,0x00,0x00,//*****46****// 0x00,0x20,0x3c,0x3c,0x3c,0x3c,0x00,0x00,//*****47****// 0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,//*****48****// 0x00,0x00,0x1c,0x3c,0x3c,0x3c,0x00,0x00,//*****49****// 0x00,0x00,0x1c,0x1c,0x3c,0x3c,0x00,0x00,//*****50****// 0x00,0x00,0x1c,0x1c,0x1c,0x3c,0x00,0x00,//*****51****// 0x00,0x00,0x1c,0x1c,0x1c,0x1c,0x00,0x00,//*****52****// 0x00,0x00,0x1c,0x1c,0x1c,0x0c,0x00,0x00,//*****53****// 0x00,0x00,0x1c,0x1c,0x1c,0x04,0x00,0x00,//*****54****// 17 0x00,0x00,0x1c,0x1c,0x1c,0x00,0x00,0x00,//*****55****// 0x00,0x00,0x1c,0x1c,0x18,0x00,0x00,0x00,//*****56****// 0x00,0x00,0x1c,0x18,0x18,0x00,0x00,0x00,//*****57****// 0x00,0x00,0x18,0x18,0x18,0x00,0x00,0x00,//*****58****// 0x00,0x00,0x10,0x18,0x18,0x00,0x00,0x00,//*****59****// 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,//*****60****// 0x00,0x00,0x00,0x08,0x18,0x00,0x00,0x00,//*****61****// 0x00,0x00,0x00,0x08,0x08,0x00,0x00,0x00,//*****62****// 0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,//*****63***// 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//*****64***// }。 /***********列掃描控制 ********/ char code scan_con[8]= {0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}。 /***********按鍵掃描控制 ********/ void keyscan() {key=(~P1)amp。0x0f。 if(key!=0) { while(((~P1)amp。0x0f)!=0)。 18 keytmp=key。 } } /***********控制延時程序 ********/ delaylms(int t) { int i,j。 for(i=0。it。i++) for(j=0。j120。j++) keyscan()。 } //*****功能程序 *******// //******逐字顯示程序 ******// fun0() {int m,n,h。 for(h=0。 h32。h=h+8) {for(n=0。n80。n++) {for(m=0。m8。m++) {P0=distab[m+h]。P2=scan_con[m]。delaylms(1)。}}}} //*********向上滾動顯示程序 *********// fun1() 19 {int m,n,h。 for(h=0。 h32。h=h+1) {fo
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1