📄 ch451.h
字号:
#ifndef _CH451_H
#define _CH451_H
typedef unsigned int uint;
typedef unsigned char uchar;
//管脚定义
sbit CH451_DCLK=P1^2;
sbit CH451_DIN=P1^1;
sbit CH451_LOAD=P1^0;
sbit CH451_DOUT=P3^3;
//命令码
#define CH451_NOP 0x0000
#define CH451_RESET 0x0201
#define CH451_LEVEL 0x0100
#define CH451_CLR_BIT 0x0180
#define CH451_SET_BIT 0x01C0
#define CH451_SLEEP 0x0202
#define CH451_LEFTMOV 0x0300
#define CH451_LEFTCYC 0x0301
#define CH451_RIGHTMOV 0x0302
#define CH451_RIGHTCYC 0x0303
#define CH451_SELF_BCD 0x0380
#define CH451_SYSOFF 0x0400
#define CH451_SYSON1 0x0401
#define CH451_SYSON2 0x0403
#define CH451_SYSON2W 0x0423
#define CH451_DSP 0x0500
#define CH451_BCD 0x0580
#define CH451_TWINKLE 0x0600
#define CH451_GET_KEY 0x0700
#define CH451_DIG0 0x0800
#define CH451_DIG1 0x0900
#define CH451_DIG2 0x0a00
#define CH451_DIG3 0x0b00
#define CH451_DIG4 0x0c00
#define CH451_DIG5 0x0d00
#define CH451_DIG6 0x0e00
#define CH451_DIG7 0x0f00
//void LEDDisplay(char MODE,uint data1)
void Delay();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -