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

<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)用 > 單片機試驗8X8 LED點陣顯示技術(shù)

        單片機試驗8X8 LED點陣顯示技術(shù)

        作者: 時間:2013-04-02 來源:網(wǎng)絡(luò) 收藏

        6 C語言源程序

        #include AT89X52.H>

        unsigned char code taba[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};

        unsigned char code tabb[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};

        void delay(void)

        {

        unsigned char i,j;

        for(i=10;i>0;i--)

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

        }

        void delay1(void)

        {

        unsigned char i,j,k;

        for(k=10;k>0;k--)

        for(i=20;i>0;i--)

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

        }

        void main(void)

        {

        unsigned char i,j;

        while(1)

        {

        for(j=0;j3;j++)  //from left to right 3 time

        {

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

        {

        P3=taba[i];

        P1=0xff;

        delay1();

        }

        }

        for(j=0;j3;j++)  //from right to left 3 time

        {

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

        {

        P3=taba[7-i];

        P1=0xff;

        delay1();

        }

        }

        for(j=0;j3;j++)  //from top to bottom 3 time

        {

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

        {

        P3=0x00;

        P1=tabb[7-i];

        delay1();

        }

        }

        for(j=0;j3;j++)  //from bottom to top 3 time

        {

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

        {

        P3=0x00;

        P1=tabb[i];

        delay1();

        }

        }

        }

        }


        上一頁 1 2 3 下一頁

        評論


        相關(guān)推薦

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

        關(guān)閉