📄 d51_new.h
字号:
/**** D51_new.h ****/
#define uchar unsigned char
#define uint unsigned int
/* ASCII */
/*
#define NUL 0x00
#define SOH 0x01
#define STX 0x02
#define ETX 0x03
#define EOT 0x04
#define ENQ 0x05
#define ACK 0x06
#define BEL 0x07
#define NAK 0x15
#define ETB 0x17
*/
#define DATA_pin P1_3
#define WCLK_pin P1_1
#define FQ_UD_pin P1_2
#define DATA8279 XBYTE[0x8000]
#define CTRL8279 XBYTE[0x8001]
#define STATUS8279 XBYTE[0x8001]
#define DISP_BUF_SIZE 8
/* LED: (Data_Address=0xe000) */
#define LED_DATA XBYTE[0xe000]
/* for SLEEP */
#define SLEEP PCON=1
/**/
static uchar code LedTab[] ={0x3f,0x06,0x5b
,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e //13
,0x79,0x71,0x73,0x3e,0x6e,0x76,0x38,0x5c,0x00,0x40,0x80,0x37,0x1c};
/* 0 1 2 3 4 5 6 7 8 9 A b C d E F P U Y H L o space - . n u */
/* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 */
//static uchar code InitLedChar[] ={26,14,5,26,23,0,1,22};
/* TEST-01 */
static uchar code OKLedChar[] ={0,12,0,12,0,12,0,12};
/* OCOCOCOC */
static uchar code ERRT[] ={14,16,14,16,14,16,14,16};
/* EPEPEPEP */
static uchar code HELLO[] ={22,19,14,20,20,0,22,22};
/* HELLO */
//static uchar code HiT[] ={22,19,1,22,1,0,0,22};
/* H1 100 */
static uchar code KeyTab[] = {'1','2','3','A','4','5','6','B','7','8','9','C','*','0','#','D'};
static uchar code CopyRight[] ="yfzhang@ele.pku.edu.cn";
static uchar THG,THG0,TSET,keyNum,keyChar,LED_status;
static unsigned int THGL,NumberC;
static uchar DispBuf[DISP_BUF_SIZE];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -