一個(gè)很好用的 lcd 時(shí)鐘程序 c語(yǔ)言
#include<reg51.h>
#include<stdio.h>
//定義計(jì)時(shí)器0 的重裝值
#define RELOAD_HIGH 0x3C
#define RELOAD_LOW 0xD2
//定義按鍵彈跳時(shí)間
#define DB_VAL
//定義設(shè)置模式的最大時(shí)間間隔
#define TIMEOUT 200
//定義游標(biāo)位置常數(shù)
#define HOME 0
#define HOUR 1
#define MIN 2
#define SEC 3
標(biāo)簽:
include
define
RELOAD
stdio
上傳時(shí)間:
2014-12-19
上傳用戶:zukfu