欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 求助 顯示一個8-1不斷右移的動態(tài)數(shù)碼管,請大家?guī)兔匆幌履睦镉绣e [打印本頁]

作者: jjjjj621    時間: 2018-6-22 23:39
標題: 求助 顯示一個8-1不斷右移的動態(tài)數(shù)碼管,請大家?guī)兔匆幌履睦镉绣e
顯示一個8-1不斷右移的動態(tài)數(shù)碼管,請大家?guī)兔匆幌履睦镉绣e

IMG_20180622_224853.jpg (83.7 KB, 下載次數(shù): 57)

IMG_20180622_224853.jpg

IMG_20180622_224630.jpg (85.2 KB, 下載次數(shù): 55)

IMG_20180622_224630.jpg

作者: jjjjj621    時間: 2018-6-22 23:41
這個照片壓縮的有點模糊啊
作者: jjjjj621    時間: 2018-6-22 23:46
#include<reg52.h>unsigned char image[] = {         0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,         0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,};void main()  {        EA=1;         TMOD=1;        TH0=0xFC;        TL0=0x67;        TR0=1;        ET0=1;        while(1);}void interrupttimer0() interrupt 1{    static unsigned char i=0;        static unsigned char sec=0;         static unsigned char cnt=0;        TH0=0xFC;                TL0=0x67;        P0 = 0xff;                switch(i){case 0:P0=image[sec+0];P2=0x80;i++;break; case 1:P0=image[sec+1];P2=0x40;i++;break;case 2:P0=image[sec+2];P2=0x20;i++;break;case 3:P0=image[sec+3];P2=0x10;i++;break;case 4:P0=image[sec+4];P2=0x08;i++;break;case 5:P0=image[sec+5];P2=0x04;i++;break;case 6:P0=image[sec+6];P2=0x02;i++;break;case 7:P0=image[sec+7];P2=0x01;i=0;break;default:break;}cnt++;if(cnt==1000){cnt=0;sec++;if(sec>8){sec=0;}}}




歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1