📄 define.h
字号:
#define OSC4M 0
#define OSC6M 0
#define OSC11M 0
#define OSC12M 1
#define OSC22M 0
#define TIMER0TH 0x00 // 12M 65.5ms
#define TIMER0TL 0x00
#define TIMER1TH 0x3c // 12M 50ms
#define TIMER1TL 0x0AF
#define CUSTOMER_CODE 0x00
#define CUSTOMER_SUB_CODE 0xff
//------remote key code define as follows-------------------------- //
//#define ANGLEASUSBKEY //not for ad212IR(no ust)
//#define BOAIRKEY
//#define VEBAIRKEY
#define VEBAIRKEY48
//#define MD10IRKEY
//#define AD215IRKEY //ad212IRKEY=AD215IR not have USBKEY,but Angle key
#ifdef BOAIRKEY
#define IR_CUSTOM_CODE 0x05
#define IR_CUSTOM_SUB_CODE 0xFA
#endif
#ifdef VEBAIRKEY
#define IR_CUSTOM_CODE 0x08
#define IR_CUSTOM_SUB_CODE 0xF7
#endif
#ifdef VEBAIRKEY48
#define IR_CUSTOM_CODE 0x08
#define IR_CUSTOM_SUB_CODE 0xF7
#endif
#ifdef AD215IRKEY
#define IR_CUSTOM_CODE 0x00
#define IR_CUSTOM_SUB_CODE 0xFF
#endif
#ifdef MD10IRKEY
#define IR_CUSTOM_CODE 0x00
#define IR_CUSTOM_SUB_CODE 0xFF
#endif
//----------------------------------------
#define IR_NONE 0xbb
#define ad212
#ifdef ad212
#define IR_AV_IN 0x0a
#define IR_MUTE 0x05
#define IR_POWER 0x14
#define IR_VOLADD 0x52
#define IR_VOLDEC 0x53
#define IR_fast_forward 0x1a
#define IR_fast_backward 0x0e
#define IR_PLAY_PAUSE 0x02
#define IR_STOP 0x51
#define IR_EJECT 0x46
#define IR_PBC 0x57
#define IR_SUB_TITLE 0x55
#define IR_AUDIO 0x06
#define IR_ANGLE 0x5e
#define IR_TITLE 0x41
#define IR_SETUP 0x47
#define IR_PROGRAM 0x4a
#define IR_LEFT 0x18
#define IR_RIGHT 0x0f
#define IR_UP 0x07
#define IR_DOWN 0x1e
#define IR_ENTER 0x44
#define IR_ZOOM_IN 0x40
#define IR_REPEAT 0x03
#define IR_SLOW_FORWARD 0x48
#define IR_SLOW_BACKWARD 0x49
#define IR_NUM1 0x09
#define IR_NUM2 0x1d
#define IR_NUM3 0x1f
#define IR_NUM4 0x0d
#define IR_NUM5 0x19
#define IR_NUM6 0x1b
#define IR_NUM7 0x11
#define IR_NUM8 0x15
#define IR_NUM9 0x17
#define IR_NUM0 0x12
#define IR_10PLUS 0x59
#define IR_CLEAR 0x08
#define IR_NEXT 0x45
#define IR_PREV 0x01
#define IR_DISPLAY 0x50
#define IR_STEP 0x4c
#define IR_PAL_NTSC 0x4d
#define IR_RANDOM 0x4e
#define IR_RESUME 0x4f
#define IR_A2B 0x5a
#define IR_GOTO 0x5b
#define IR_PLAY 0x5c
#define IR_PAUSE 0x5d
#define IR_USB 0x5f
#endif
#if (defined(BOAIRKEY)||defined(VEBAIRKEY)||defined(VEBAIRKEY48)||defined(MD10IRKEY))
#define IR_ACC_POWER 0x80
#define IR_PNL_POWER 0x80
#define IR_PNL_PLAY_PAUSE 0x86
#define IR_PNL_STOP 0x85
#define IR_PNL_AV_IN 0x84
#define IR_PNL_PREV 0x83
#define IR_PNL_NEXT 0x82
#define IR_PNL_EJECT 0x81
#define IR_PNL_ENTER 0x7F
#define IR_PNL_UP 0x7E
#define IR_PNL_RIGHT 0x7D
#define IR_PNL_DOWN 0x7C
#define IR_PNL_LEFT 0x7B
#define IR_PNL_SETUP 0x7A
#define IR_PNL_VOLADD 0x79
#define IR_PNL_VOLDEC 0x78
#define IR_PNL_AUDIO 0x77
#ifdef BOAIRKEY
#define IR_REPEAT_VOLADD 0x44
#define IR_REPEAT_VOLDEC 0x48
#define IR_REPEAT_RIGHT 0x49
#define IR_REPEAT_LEFT 0x4a
#endif
#ifdef VEBAIRKEY
#define IR_REPEAT_VOLADD 0x4d
#define IR_REPEAT_VOLDEC 0x59
#define IR_REPEAT_RIGHT 0x0e
#define IR_REPEAT_LEFT 0x01
#endif
#ifdef VEBAIRKEY48
#define IR_REPEAT_VOLADD 0x4d
#define IR_REPEAT_VOLDEC 0x59
#define IR_REPEAT_RIGHT 0x0e
#define IR_REPEAT_LEFT 0x01
#endif
#else
#define IR_ACC_POWER IR_POWER
#define IR_PNL_POWER IR_POWER
#define IR_PNL_PLAY_PAUSE IR_PLAY_PAUSE
#define IR_PNL_STOP IR_STOP
#define IR_PNL_AV_IN IR_AV_IN
#define IR_PNL_PREV IR_PREV
#define IR_PNL_NEXT IR_NEXT
#define IR_PNL_EJECT IR_EJECT
#define IR_PNL_ENTER IR_ENTER
#define IR_PNL_UP IR_UP
#define IR_PNL_RIGHT IR_RIGHT
#define IR_PNL_DOWN IR_DOWN
#define IR_PNL_LEFT IR_LEFT
#define IR_PNL_SETUP IR_SETUP
#define IR_PNL_VOLADD IR_VOLADD
#define IR_PNL_VOLDEC IR_VOLDEC
#define IR_PNL_AUDIO IR_AUDIO
#define IR_REPEAT_VOLADD IR_VOLADD
#define IR_REPEAT_VOLDEC IR_VOLDEC
#define IR_REPEAT_RIGHT IR_RIGHT
#define IR_REPEAT_LEFT IR_LEFT
#endif
#define Receive_head 1
#define Receive_customer_code 2
//#define Receive_key_code_data1 3
//#define Receive_key_code_data2 4
#define RptKeyMaxTimer 3//5//10//12
#define IsMute 1
#define IsNotMute 0
#define IsNotStandby 0
#define IsStandby 1
#define AllowScan 0
#define NotAllowScan 1
#define IsArrivaledTime 1
#define IsNotArrivaledTime 0
#define MasterPwrOn 0///1
#define MasterPwrOff 1///0
#define MUTEON 1
#define MUTEOFF 0
#define YES 1
#define NO 0
#define TWOSECOND 60
#define HIGH 1
#define LOW 0
#define THREEMINUTE 6000
#define TIMER2 0
#define TIMER1 1
#define PWROUTON 1
#define PWROUTOFF 0
#define XSECOND 150//200
#define USE_STCMCU_EEPROM
#define POWER_LAST_MEMORY
#define OnlyPanelKey
#define STC12C2052
//#define STC89C52
#ifdef STC12C2052
#define ACCADDRESS 0x1000
#define ACCADDRESS1 0x1200
#endif
#ifdef STC89C52
#define ACCADDRESS 0x2600
#define ACCADDRESS1 0x2800
#endif
//#define EN_REPEAT_RIGHT_LEFT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -