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

標題: 求51單片機動態數碼管顯示521.1314的程序? 求幫助 [打印本頁]

作者: 魂惜之心    時間: 2018-4-11 00:43
標題: 求51單片機動態數碼管顯示521.1314的程序? 求幫助
能不能編一個動態數碼管顯示521.1314的程序?各路大神,幫幫忙啊
作者: HTT2311722218    時間: 2019-7-14 19:12
#include<reg52.h> #define DataPort P0; sbit LATCH1=P2^2; sbit LATCH2=P2^3; unsigned char weima[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf};  unsigned char duanma[]={0x6D,0x5B,0x06,0x06,0x4F,0x06,0x66,0x30,0x38,0x3F,0x3E,0x7B,0x3E};    void delay(unsigned char t);  main() { unsigned char i; while(1)   {    for(i=0;i<7;i++)     {        P0=weima[i];        LATCH2=1;        LATCH2=0;          P0=duanma[i];        LATCH1=1;        LATCH1=0;                delay(20000);      }       }    }    void delay(unsigned char t) { while(--t); }




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