Skip to content

Instantly share code, notes, and snippets.

@phiexz
Created October 12, 2018 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phiexz/da81778696103f89d28f19de5a900075 to your computer and use it in GitHub Desktop.
Save phiexz/da81778696103f89d28f19de5a900075 to your computer and use it in GitHub Desktop.
Using indihome remote for librelec amlogic
#*********************************************************************************************************
#
#this file is configuration for each factory remote device
# work_mode 0 :software mode 1 :hardware mode
# repeat_enable 0 :disable repeat 1 :enable repeat
#
# factory_code each device has it's unique factory code.
# pattern:custom_code(16bit)+index_code(16bit)
# examble: 0xff000001 = 0xff00(custom cod) 0001 (index)
#
# release_delay unit:ms.release will report from kernel to user layer after this period of time
# from press or repeat triggered.
#
# debug_enable 0 :debug disable 1 :debug disable
#
# SW MODE:
# bit_count how many bits in each frame
# tw_leader_act time window for leader active
# tw_bit0 time window for bit0 time.
# tw_bit1 time window for bit1 time
# tw_repeat_leader time window for repeat leader
# REG
# reg_base_gen set value for PREG_IR_DEC_BASE_GEN
# reg_control set value for PREG_IR_DEC_CONTROL
# reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE
# reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE
# reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE
# reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME
#*************************************************************************************************************
#amlogic NEC remote
work_mode = 0
repeat_enable = 1
repeat_delay = 130
repeat_peroid = 120
release_delay = 20
debug_enable = 1
custom_begin
factory_infcode = 0
factory_code = 0xff000001
fn_key_scancode = 0x11
left_key_scancode = 0x48
right_key_scancode = 0x4a
up_key_scancode = 0x47
down_key_scancode = 0x4b
ok_key_scancode = 0x49
mouse_begin
0 0x48
1 0x4a
2 0x47
3 0x4b
mouse_end
key_begin
0x40 116 #power
#0x1c #L/R
0x12 113 #mute
0x1d 150 #SET / Setting
#0x11 #LOC
#0x4e #Live / F1
#0x0f #TVOD / F2
#0x50 #VOD / F3
#0x51 #Service / F4
0x4d 139 #menu
0x56 102 #app
0x47 103 #up
0x48 105 #kiri
0x49 28 #enter
0x4a 106 #kanan
0x4b 108 #bawah
0x4c 1 #back
#0x1e #info
0x43 121 #<<
0x46 120 #>>
0x44 119 #|
0x15 108 #Ch -
0x45 128 #stop
0x0c 115 #Vol +
0x0d 112 #|<<
0x0b 103 #Ch +
0x18 114 #Vol -
0x13 123 #>>|
0x01 2 #1
0x02 3 #2
0x03 4 #3
0x04 5 #4
0x05 6 #5
0x06 7 #6
0x07 8 #7
0x08 9 #8
0x09 10 #9
#0x0a #-/--
0x00 11 #0
#0x16 #switch/jump
key_end
repeat_key_begin
repeat_key_end
custom_end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment