中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 單片機動態(tài)數(shù)碼顯示技術(shù)

        單片機動態(tài)數(shù)碼顯示技術(shù)

        作者: 時間:2012-08-24 來源:網(wǎng)絡(luò) 收藏

        7. C語言源程序

        #include AT89X51.H>

        unsigned char code table1[]={0x06,0x5b,0x4f,0x66,0x6d};

        unsigned char code table2[]={0x78,0x79,0x38,0x38,0x3f};

        unsigned char i;

        unsigned char a,b;

        unsigned char temp;

        void main(void)

        {

        while(1)

        {

        temp=0xfe;

        for(i=0;i5;i++)

        {

        if(P1_7==1)

        {

        P0=table1[i];

        }

        else

        {

        P0=table2[i];

        }

        P2=temp;

        a=temp(i+1);

        b=temp>>(7-i);

        temp=a|b;

             for(a=4;a>0;a--)

        for(b=248;b>0;b--);

        }

        }

        }


        上一頁 1 2 3 下一頁

        關(guān)鍵詞: 技術(shù) 顯示 數(shù)碼 動態(tài) 單片機

        評論


        相關(guān)推薦

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

        關(guān)閉