找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索

數(shù)碼管學(xué)號滾動(dòng)顯示的單片機(jī)程序

查看數(shù): 8058 | 評論數(shù): 1 | 收藏 0
關(guān)燈 | 提示:支持鍵盤翻頁<-左 右->
    組圖打開中,請稍候......
發(fā)布時(shí)間: 2018-9-21 17:00

正文摘要:

源程序 #include <REG51.H> #define uint unsigned int #define uchar unsigned char uchar code DIS_SEG7[]={0xf9,0x92,0xb0,0xf9,0xc0,0xa4,0xf9,0xb0};//設(shè)置學(xué)號,共陽字形碼 uchar code DIS_BIT[8]={ ...

回復(fù)

ID:738664 發(fā)表于 2020-4-26 16:54
if(k1==1&&k2==1)
         delay1ms(1);
      else {
       if(k1==0&&k2==1)
                delay1ms(2);
       else{
           if(k1==1&&k2==0)
                      delay1ms(3);
       else{
                           if(k1==0&&k2==0)
                           delay1ms(4);
         }
         }
                       }

這個(gè)有什么用啊

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表