一個很好用的 lcd 時鐘程序 C語言
#include<reg51.h>
#include<stdio.h>
//定義計時器0 的重裝值
#define RELOAD_HIGH 0x3C
#define RELOAD_LOW 0xD2
//定義按鍵彈跳時間
#define DB_VAL
//定義設置模式的最大時間間隔
#define TIMEOUT 200
//定義游標位置常數
#define HOME 0
#define HOUR 1
#define MIN 2
#define SEC 3
标签:
include
define
RELOAD
stdio
上传时间:
2014-12-19
上传用户:zukfu