full_keymap.rb

  • Download Gist
Tested on (UK) 42LW550T-ZE firmware 4.00.18
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603
def lookup key
key = key.to_sym if key.is_a?(String)
 
case key
 
when :channel_up, :ch_up
0
when :channel_down, :ch_down
1
when :volume_up, :vol_up
2
when :volume_down, :vol_down
3
 
when :unknown4
4
when :unknown5
5
 
when :right
6
when :left
7
 
when :off, :power_off
8
when :mute
9
 
 
when :audio_language
10
when :input
11
 
when :unknown12
12
when :unknown13
13
 
when :sleep_timer
14
when :tv_radio
15
 
when 0
16
when 1
17
when 2
18
when 3
19
when 4
20
when 5
21
when 6
22
when 7
23
when 8
24
when 9
25
 
when :q_view, :quick_view, :channel_back, :flash_back
26
 
when :unknown27
27
when :unknown28
28
when :unknown29
29
 
when :favorites, :fav
30
 
when :unknown31
31
 
when :teletext, :text
32
 
when :t_opt
33
when :unknown34
34
 
when :status_bar, :top_info_bar, :info_bar
35
 
when :unknown36
36
when :unknown37
37
when :unknown38
38
when :unknown39
39
 
when :back, :return
40
 
when :unknown41
41
when :unknown42
42
when :unknown43
43
when :unknown44
44
when :unknown45
45
when :unknown46
46
when :unknown47
47
 
 
when :av_mode
48
 
when :unknown49
49
when :unknown50
50
when :unknown51
51
when :unknown52
52
when :unknown53
53
when :unknown54
54
when :unknown55
55
when :unknown56
56
 
when :subtitle, :subtitle_language
57
 
 
when :unknown58
58
when :unknown59
59
when :unknown60
60
when :unknown61
61
when :unknown62
62
when :unknown63
63
 
when :up
64
when :down
65
 
when :home, :menu
67
when :select, :enter
68
when :qmenu, :quick_menu
69
 
when :unknown70
70
when :unknown71
71
when :unknown72
72
when :unknown73
73
when :unknown74
74
when :unknown75
75
 
when :underscore, :dash, :char, :text_input
76
when :picture_mode
77
 
when :unknown78
78
when :unknown79
79
when :unknown80
80
when :unknown81
81
 
when :sound_mode
82
when :channel_list
83
 
when :unknown84
84
 
when :unknown85, :greyed_out_add_button?
85
 
when :unknown86
86
when :unknown87
87
when :unknown88
88
 
when :premium, :netcast
89
 
when :av1
90
 
when :exit
91
 
when :unknown92
92
when :unknown93
93
when :unknown94
94
when :unknown95
95
when :unknown96
96
 
when :blue
97
when :unknown98
98
when :yellow
99
 
when :unknown100
100
when :unknown101
101
when :unknown102
102
when :unknown103
103
when :unknown104
104
when :unknown105
105
when :unknown106
106
when :unknown107
107
when :unknown108
108
when :unknown109
109
when :unknown110
110
when :unknown111
111
when :unknown112
112
 
when :green
113
when :red
114
 
when :unknown115
115
when :unknown116
116
when :unknown117
117
when :ratio43, :ratio4_3
118
when :ratio169, :ratio16_9
119
 
when :unknown120
120
 
when :ratio, :aspect_ratio
121
 
when :unknown122
122
when :unknown123
123
 
when :usb, :device_selection, :usb_devices, :usb1_usb2
124
 
when :unknown125
125
 
when :simplink
126
 
when :unknown127
127
when :unknown128
128
when :unknown129
129
when :unknown130
130
when :unknown131
131
 
when :fast_forward, :skip_forward
142
when :rewind, :skip_backward
143
 
when :unknown144
144
 
when :audio_description, :ad
145
 
when :unknown146
146
when :unknown147
147
when :unknown148
148
 
when :green_eye_check, :energy_saving, :green_leaf
149
 
when :quick_input, :input_fast, :component_rgb_hdmi, :external_inputs
152
 
when :unknown153, :this_function_is_not_available_now?
153
 
when :unknown154
154
when :unknown155
155
when :unknown156
156
when :unknown157
157
 
when :live_tv
158
 
 
when :unknown159
159
when :unknown160
160
when :unknown161
161
when :unknown162
162
when :unknown163
163
 
when :self_diagnosis
164
when :self_diagnosis2
165
 
when :slideshow_usb2
168
 
when :programme_guide, :guide, :epg
169
when :programme_info, :info
170
when :programme_guide, :guide, :epg
171
 
when :unknown172
172
 
when :self_diagnosis3
173
 
when :unknown174
174
 
when :cinema_zoom, :zoom_level
175
 
when :play
176
when :stop
177
 
when :unknown178
178
when :unknown179
179
when :unknown180
180
when :unknown181
181
when :unknown182
182
when :unknown183
183
when :unknown184
184
when :unknown185
185
 
when :pause
186
 
when :unknown187
187
 
when :self_diagnosis4
188
 
when :record
189
 
when :self_diagnosis5
190
 
when :component, :component_fast
191
 
when :unknown192
192
when :unknown193
193
when :unknown194
194
when :unknown195
195
when :unknown196
196
when :unknown197
197
 
when :hdmi, :hdmis, :hdmi_fast, :hdmi_inputs, :cycle_hdmis
198
when :unknown199
199
when :usb, :device_selection, :usb_devices, :usb1_usb2
200
 
when :unknown201
201
when :unknown202
202
when :unknown203
203
 
when :hdmi2
204
 
when :unknown205
205
 
when :hdmi1
206
 
# Hotel settings menu, TV Link Loader menu, Set password, Set ID (used in RS232 command mode)
# Clone and restore settings to USB stick (FAT formatted, 128Mb+, recommended method)
# USB backup Saves to a numbered .TLL file. When restoring, you can select from multiple .TLL backups on the same USB stick
# Alternatively, the old style commercial device, called "LG TV Link Loader" (TLL-1100A) is also supported
when :installation_menu, :usb_backup_restore, :hotel_menu, :tv_link_loader, :usb_backup, :usb_restore
207
 
when :av2
208
when :av3
209
 
when :unknown210
210
when :unknown211
211
 
when :status_bar, :top_info_bar, :info_bar
212
 
when :rgb
213
 
when :tv_radio
214
 
when :rgb
215
 
when :unknown216
216
 
when :status_bar, :top_info_bar, :info_bar
217
 
when :hdmi4
218
 
when :unknown219
219
 
when :_3d_mode, :_3d
220
 
when :unknown221
221
when :unknown222
222
when :unknown223
223
when :unknown224
224
when :unknown225
225
when :unknown226
226
when :unknown227
227
when :unknown228
228
when :unknown229
229
when :unknown230
230
when :unknown231
231
when :unknown232
232
 
when :hdmi3
233
 
when :unknown234
234
when :unknown235
235
when :unknown236
236
when :unknown237
237
 
when :slideshow_usb1
238
 
when :unknown239
239
 
when :tv_radio
240
 
when :unknown241
241
when :unknown242
242
when :unknown243
243
when :unknown244
244
when :unknown245
245
when :unknown246
246
when :unknown247
247
when :unknown248
248
 
when :scanning_greys_test, :gradient_text
249
 
# when :reset, :danger_reset!, :instop_processing_is_in_progress_dont_remote_the_power_cable
# 250
 
when :factory_menu1, :in_start, :factory_menus, :factory_extended_info_and_adjustments, :potentially_very_dangerous
251
 
when :p_check, :picture_check, :factory_picture_check, :cycle_trough_color_tints
252
 
when :s_check, :sound_check, :factory_sound_check, :cycle_through_sound_volume_balance
253
 
# when :danger!, :power_only_mode, :things_stop_working, :scews_up_network_settings
# 254
 
when :factory_menu2, :ez_adjust, :ez_adjust_menu, :advanced_mcu_controls, :mcu_hardware_settings, :potentially_very_dangerous
255
 
# No known commands above 255
else
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.