📄 myremotereception.h
字号:
#ifndef MYREMOTERECEPTION_H
#define MYREMOTERECEPTION_H
//interrupt serve function name inter_P0.
//#pragma INTERRUPT INTP0 Inter_P0
//#pragma interrupt INTTM01 Inter_TM1
/*
// Is it preferable for assigning value to be placed in main funtion?
bit IR = P2.4; //the bit for remote control infrared ray
reception
*/
#define CODE_CONTINUE 1
#define CHECK_IR_CUSTOMER_CODE 1
#define CUSTOMER_CODE 0X00
//#define CUSTOMER_CODE1 0Xff
#define KEY_NO_KEY 0
//key for Chinese and English text switch
#define IR_ENCNSWITCH 0x1
//key for volume decrease and selection downwards
#define IR_DOWN 0x2
#define IR_PROGSEL 0x5 //key for programme number selection
//key for volume increase and selection upwards
#define IR_UP 0x6
//key for channel adjustment and selection left
#define IR_LEFT 0x7
//key for channel adjustment and selection right
#define IR_RIGHT 0x8
#define IR_AT 0x9 //key for email address sign @
#define IR_SYMBOL 0x10 //key for input of symbol
//key for capitalization and small letter switch
#define IR_CAPSSWITCH 0x11
#define IR_MENU 0x12 //key for function selection
//key for number and letter, that is, 9, W, X, Y or Z.
#define IR_9WXYZ 0x13
#define IR_ZERO 0x14 //key for number 0
#define IR_OK 0x15 //key for acknowledgment
#define IR_CANCEL 0x16 //key for cancellation
//key for number and letter, that is, 5, J, K or L.
#define IR_5JKL 0x17
//key for number and letter, that is, 6, M, N or O.
#define IR_6MNO 0x18
//key for number and letter, that is, 7, P, Q ,R or S.
#define IR_7PQRS 0x19
//key for number and letter, that is, 8, T, U or V
#define IR_8TUV 0x20
#define IR_1 0x21 //key for number 1
//key for number and letter, that is, 2, A, B or C
#define IR_2ABC 0x22
//key for number and letter, that is, 3, D, E or F
#define IR_3DEF 0x23
//key for number and letter, that is, 4, C, H or I
#define IR_4GHI 0x24
//key for memory used to store the favourite station
#define IR_MPLUS 0x25
//key for playing channel at random
#define IR_PAN 0x26
#define IR_SHORTCUT 0x27 //key for shortcut
//key for display switch between 16/9 and 4/3 mode
#define IR_16_9 0x29
//key for showing prompt of screen information
#define IR_DISP 0x30
//key for switch between TV and AV mode
#define IR_TVAV 0x31
#define IR_POWER 0x32 //key for TV power supply
//define key value
#define KEY_ENGLISH 1
#define KEY_CHINESE 2
#define KEY_DOWN 3
#define KEY_SEL_SINGLE_NUM 6
#define KEY_SEL_DOUBLE_NUM 7
#define KEY_UP 8
#define KEY_LEFT 9
#define KEY_RIGHT 10
#define KEY_AT 11
#define KEY_SYMBOL 12
#define KEY_CAPITAL 13
#define KEY_SMALL_LETTER 14
#define KEY_MENU 15
#define KEY_9 16
#define KEY_W 17
#define KEY_X 18
#define KEY_Y 19
#define KEY_Z 20
#define KEY_0 21
#define KEY_OK 22
#define KEY_CANCEL 23
#define KEY_5 24
#define KEY_J 25
#define KEY_K 26
#define KEY_L 27
#define KEY_6 28
#define KEY_M 29
#define KEY_N 30
#define KEY_O 31
#define KEY_7 32
#define KEY_P 33
#define KEY_Q 34
#define KEY_R 35
#define KEY_S 36
#define KEY_8 37
#define KEY_T 38
#define KEY_U 39
#define KEY_V 40
#define KEY_1 41
#define KEY_2 42
#define KEY_A 43
#define KEY_B 44
#define KEY_C 45
#define KEY_3 46
#define KEY_D 47
#define KEY_E 48
#define KEY_F 49
#define KEY_4 50
#define KEY_G 51
#define KEY_H 52
#define KEY_I 53
#define KEY_MPLUS 54
#define KEY_PAN 55
#define KEY_SHORTCUT 56
#define KEY_SCREEN_16 58
#define KEY_SCREEN_9 59
#define KEY_DISP 60
#define KEY_TV 61
#define KEY_AV 62
#define KEY_POWER 63
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -