在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > pic單片機8位點陣的字母滾動

            pic單片機8位點陣的字母滾動

            作者: 時間:2016-11-29 來源:網(wǎng)絡(luò) 收藏
            因為程序內(nèi)存的原因不能用2維數(shù)組,所以只好定義8個數(shù)組來顯示字母,也就只有8個字母可以顯示了,聽何家偉說往數(shù)組前面加一個code就可以定義了,不過不知道PIC里面能不能用,先把還不算太完善的作品貼出來再慢慢改吧。本來想把視頻傳上來還要黃鉆,暈。算了。
            #include void delay();void init();unsigned char table[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};unsigned char  scan[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};unsigned char  A[8]={0x00,0x38,0x44,0x44,0x44,0x7C,0x44,0x44};//Aunsigned char  B[8]={0x00,0x3C,0x44,0x44,0x3C,0x44,0x44,0x3C};//Bunsigned char  C[8]={0x00,0x78,0x04,0x04,0x04,0x04,0x04,0x78};//Cunsigned char  D[8]={0x00,0x3C,0x44,0x44,0x44,0x44,0x44,0x3C};//Dunsigned char  E[8]={0x00,0x7C,0x04,0x04,0x7C,0x04,0x04,0x7C};//Eunsigned char  F[8]={0x00,0x7C,0x04,0x04,0x7C,0x04,0x04,0x04};//Funsigned char  G[8]={0x00,0x38,0x44,0x04,0x04,0x74,0x44,0x38};//Gunsigned char  H[8]={0x00,0x44,0x44,0x44,0x7C,0x44,0x44,0x44};//Hunsigned char i,j,k,temp,m,x,y,z,n;main(){TRISC=0X00;TRISB=0X00;while(1){init();while(k){for(m=0;m<8;m++){table=A<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=A>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=B<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=B>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=C<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=C>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=D<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=D>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=E<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=E>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=F<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=F>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=G<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=G>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}init();while(k){for(m=0;m<8;m++){table=H<200)temp==1;k--;}if(!k){for(x=0;x<8;x++){for(m=0;m<8;m++){table=H>>x;}for(temp=1;temp<=200;temp++){for(i=0;i<8;i++){PORTB=~table[i];PORTC=scan[i];delay();PORTC=0X00;}}if(temp>200)temp==1;}}}}void init(){k=5;x=0;}void delay(){for(j=1;j<100;j++);}


            關(guān)鍵詞: pic單片機8位點陣字母滾

            評論


            技術(shù)專區(qū)

            關(guān)閉