標題:
51單片機按鍵顯示
[打印本頁]
作者:
fghdfjh
時間:
2017-11-19 19:18
標題:
51單片機按鍵顯示
/*
函數(shù)功能說明:P0驅動數(shù)碼管
*/
#include "reg51.h"
#include "leddriver.h"
#include "leddisplaydriver.h"
#include "timer.h"
#include "bspKey.h"
main()
{
unsigned char ucDisplayData;
//bit bIsKeyUped;
// ucDisplayData = 128 ;
// while(1)
// {
// if( ucKey44Scan() == 0)
// {
// bit bIsKeyUped = 1;
// }//消抖
// if(bIsKeyUped == 1)
// {
// bIsKeyUped = 0;
ucDisplayData = ucKey44Scan() ;
// }
vDisplayData(ucDisplayData);
//
// if( ucKeyScan() == 2)
// ucDisplayData ++ ;
//
// vDisplayData(ucDisplayData);
//
// }
}
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1