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

正文內容

光立方(含程序)畢業(yè)設計-資料下載頁

2025-08-22 20:02本頁面

【導讀】光立方是LED發(fā)光二極管構成的正方體形狀的立體顯示裝置,使用單色或多色發(fā)。光管,可以產(chǎn)生復雜靈活、十分有吸引力的顯示效果,包括單一立體圖形的靜態(tài)顯示、動態(tài)顯示和多種圖形的交替顯示等多種顯示方式,未來甚至可能以此為基礎,真正實?,F(xiàn)復雜圖像的三維顯示。光立方是一個集實際型、經(jīng)濟型、性價比高的藝術品,它。不僅僅局限于裝飾,更是能夠幫助更好的學習c語言實際應用、滿足單片機愛好者。對基于單片機控制系統(tǒng)電路設計研究的好課題。本設計采用的是8*8*8的光立方設計方案,即立方體的長寬高各是由八個LED燈。排列而成的,長寬高大概是14cm*14cm*20cm,整個系統(tǒng)主要分為三個模塊:控制模。塊驅動模塊顯示模塊;主控芯片為60KSTC12C5A60S2,驅動電路采用的是cmos. 鎖存器74HC573數(shù)字芯片以及達林頓管驅動器ULN2803,顯示模塊為512個LED. 焊接成的光立方。經(jīng)過試驗本方案成功實現(xiàn)了光立方的動態(tài)顯示及控制。Keywords:ledcube;74HC573;STC12C5A60S2;ULN2803

  

【正文】 define uint unsigned int uchar display[8][8]。 /*rank:A,1,2,3,4,I,心 ,U*/ uchar code table_cha[8][8]={0x51,0x51,0x51,0x4a,0x4a,0x4a,0x44,0x44,0x18,0x1c,0x18,0x18,0x18,0x18,0x18,0x3c,0x3c,0x66,0x66,0x30,0x18,0xc,0x6,0xf6,0x3c,0x66,0x60,0x38,0x60,0x60,0x66,0x3c,0x30,0x38,0x3c,0x3e,0x36,0x7e,0x30,0x30,0x3c,0x3c,0x18,0x18,0x18,0x18,0x3c,0x3c,0x66,0xff,0xff,0xff,0x7e,0x3c,0x18,0x18,0x66,0x66,0x66,0x66,0x66,0x66,0x7e,0x3c}。 /*the ideasoft*/ uchar code table_id[40]={0x81,0xff,0x81,0x00,0xff,0x81,0x81,0x7e,0x00,0xff,0x89,0x89,0x00,0xf8,0x27,0x27,0xf8,0x00,0x8f,0x89,0x89,0xf9,0x00,0xff,0x81,0x81,0xff,0x00,0xff,0x09,0x09,0x09,0x01,0x0,0x01,0x01,0xff,0x01,0x01,0x00}。 /*railway*/ uchar code dat[128]={0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4,0x25,0x45,0x65,0x85,0xa5,0xc5,0xc9,0xcd,0xd1,0xd5,0xd9,0xb9,0x99,0x79,0x59,0x39,0x35,0x31,0x2d,0x29,0x4a,0x6a,0x8a,0xaa,0xae,0xb2,0xb6,0x96,0x76,0x56,0x52,0x4e,0x6f,0x8f,0x93,0x73,0x6f,0x8f,0x93,0x73,0x4a,0x6a,0x8a,0xaa,0xae,0xb2,0xb6,0x96,0x76,0x56,0x52,0x4e,0x25,0x45,0x65,0x85,0xa5,0xc5,0xc9,0xcd,0xd1,0xd5,0xd9,0xb9,0x99,0x79,0x59,0x39,0x35,0x31,0x2d,0x29,0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4}。 /*railway 2*/ uchar code dat2[28]={0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4}。 /*railway 3*/ 34 34 uchar code dat3[24]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x16,0x26,0x36,0x46,0x56,0x66,0x65,0x64,0x63,0x62,0x61,0x60,0x50,0x40,0x30,0x20,0x10}。 /*3p char*/ uchar code table_3p[3][8]={0xff,0x89,0xf5,0x93,0x93,0xf5,0x89,0xff,0x0e,0x1f,0x3f,0x7e,0x7e,0x3f,0x1f,0x0e,0x18,0x3c,0x7e,0xff,0x18,0x18,0x18,0x18}。 /*initializtion That is to initialize the program . It is write to set the timer in c52 mcu. So the program can renovate the led_3d_cube in fixed time use the interrupt function.*/ void sinter() { IE=0x82。 TCON=0x01。 TH0=0xc0。 TL0=0。 TR0=1。 } void delay5us(void) //誤差 STC 1T { unsigned char a,b。 for(b=7。b0。b) for(a=2。a0。a)。 } void delay(uint i) { while (i){ delay5us()。}//12 的 mcu 注釋這個延時即可 /*To judge the num bit*/ uchar judgebit(uchar num,uchar b) { char n。 num=numamp。(1b)。 if (num) n=1。 else n=0。 return n。 } /*To figure out the round number*/ uchar abs(uchar a) { 35 35 uchar b。 b=a/10。 a=ab*10。 if (a=5) b++。 return b。 } /*To figure out the absolute value*/ uchar abss(char a) { if (a0) a=a。 return a。 } /*The function can parat the character. And remove the big one to the back.*/ void max(uchar *a,uchar *b) { uchar t。 if ((*a)(*b)) { t=(*a)。 (*a)=(*b)。 (*b)=t。 } } /*The function is to figure out the max number and return it.*/ uchar maxt(uchar a,uchar b,uchar c) { if (ab) a=b。 if (ac) a=c。 return a。 } void clear(char le) { uchar i,j。 for (j=0。j8。j++) { for (i=0。i8。i++) display[j][i]=le。 } } 36 36 void trailler(uint speed) { char i,j。 for (i=6。i=3。i) { if (i=0) { for (j=0。j8。j++) display[j][i]=display[j][i+1]。 } if (i4) { for (j=0。j8。j++) display[j][i+4]=0。 } delay(speed)。 } } void point(uchar x,uchar y,uchar z,uchar le) { uchar ch1,ch0。 ch1=1x。 ch0=~ch1。 if (le) display[z][y]=display[z][y]|ch1。 else display[z][y]=display[z][y]amp。ch0。 } void type(uchar cha,uchar y) { uchar xx。 for (xx=0。xx8。xx++) { display[xx][y]=table_cha[cha][xx]。 } } /*The first variable is the distance from the midpoint. The second is the layer. the third is the flash speed of the time between each two point. The forth is the enable io,it controls weather draw or claen.* void cirp(char cpp,uchar dir,uchar le) { uchar a,b,c,cp。 if ((cpp128)amp。(cpp=0)) 37 37 { if (dir) cp=127cpp。 else cp=cpp。 a=(dat[cp]5)amp。0x07。 b=(dat[cp]2)amp。0x07。 c=dat[cp]amp。0x03。 if (cpp63) c=7c。 point (a,b,c,le)。 } } void line(uchar x1,uchar y1,uchar z1,uchar x2,uchar y2,uchar z2,uchar le) { char t,a,b,c,a1,b1,c1,i。 a1=x2x1。 b1=y2y1。 c1=z2z1。 t=maxt(abss(a1),abss(b1),abss(c1))。 a=x1*10。 b=y1*10。 c=z1*10。 a1=a1*10/t。 b1=b1*10/t。 c1=c1*10/t。 for (i=0。it。i++) { point(abs(a),abs(b),abs(c),le)。 a+=a1。 b+=b1。 c+=c1。 } point(x2,y2,z2,le)。 } void box(uchar x1,uchar y1,uchar z1,uchar x2,uchar y2
點擊復制文檔內容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1