]>
Commit | Line | Data |
---|---|---|
12fecc8f UH |
1 | ## |
2 | ## This file is part of the libsigrokdecode project. | |
3 | ## | |
4 | ## Copyright (C) 2014 Uwe Hermann <uwe@hermann-uwe.de> | |
5 | ## | |
6 | ## This program is free software; you can redistribute it and/or modify | |
7 | ## it under the terms of the GNU General Public License as published by | |
8 | ## the Free Software Foundation; either version 2 of the License, or | |
9 | ## (at your option) any later version. | |
10 | ## | |
11 | ## This program is distributed in the hope that it will be useful, | |
12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ## GNU General Public License for more details. | |
15 | ## | |
16 | ## You should have received a copy of the GNU General Public License | |
4539e9ca | 17 | ## along with this program; if not, see <http://www.gnu.org/licenses/>. |
12fecc8f UH |
18 | ## |
19 | ||
20 | # Addresses/devices. Items that are not listed are reserved/unknown. | |
21 | address = { | |
f759507a | 22 | 0x00: 'Joy-it SBC-IRC01', |
12fecc8f | 23 | 0x40: 'Matsui TV', |
5881582c | 24 | 0xEA41: 'Unknown LED Panel', |
12fecc8f UH |
25 | } |
26 | ||
27 | digits = { | |
28 | 0: ['0', '0'], | |
29 | 1: ['1', '1'], | |
30 | 2: ['2', '2'], | |
31 | 3: ['3', '3'], | |
32 | 4: ['4', '4'], | |
33 | 5: ['5', '5'], | |
34 | 6: ['6', '6'], | |
35 | 7: ['7', '7'], | |
36 | 8: ['8', '8'], | |
37 | 9: ['9', '9'], | |
38 | } | |
39 | ||
40 | # Commands. Items that are not listed are reserved/unknown. | |
41 | command = { | |
42 | 0x40: dict(list(digits.items()) + list({ | |
43 | 11: ['-/--', '-/--'], | |
44 | 16: ['Mute', 'M'], | |
45 | 18: ['Standby', 'StBy'], | |
46 | 26: ['Volume up', 'Vol+'], | |
47 | 27: ['Program up', 'P+'], | |
48 | 30: ['Volume down', 'Vol-'], | |
49 | 31: ['Program down', 'P-'], | |
50 | 68: ['AV', 'AV'], | |
51 | }.items())), | |
5881582c SR |
52 | |
53 | # This is most likely a generic remote control. The PCB | |
54 | # has space for 16 buttons total, of which not all are | |
55 | # connected. The PCB is marked "JSY", "XSK-5462", and | |
56 | # "2014-6-12 JW". It consists of only a single IC, marked | |
57 | # "BJEC107BNE" or similar. The following buttons are | |
58 | # marked for the remote control of a LED panel this was | |
59 | # found in. | |
60 | 0xEA41: { | |
61 | 0x10: ['Warmer', 'T+'], | |
62 | 0x11: ['Colder', 'T-'], | |
63 | 0x12: ['Brighter', '+'], | |
64 | 0x13: ['Darker', '-'], | |
65 | 0x14: ['Off', 'O'], | |
66 | 0x15: ['On', 'I'], | |
67 | 0x41: ['Min Brightness', 'Min'], | |
68 | 0x48: ['Max Brightness', 'Max'], | |
69 | }, | |
f759507a B |
70 | 0x00: { |
71 | 0x45: ['Volume down', 'Vol-'], | |
72 | 0x46: ['Play/Pause', 'P/P'], | |
73 | 0x47: ['Volume up', 'Vol+'], | |
74 | 0x44: ['Setup', 'Set'], | |
75 | 0x40: ['Up', 'U'], | |
76 | 0x43: ['Stop / Mode', 'S/M'], | |
77 | 0x07: ['Left', 'L'], | |
78 | 0x15: ['Enter', 'E'], | |
79 | 0x09: ['Right', 'R'], | |
80 | 0x16: ['0 / 10+', '0'], | |
81 | 0x19: ['Down', 'D'], | |
82 | 0x0D: ['Back', 'B'], | |
83 | 0x0C: ['1', '1'], | |
84 | 0x18: ['2', '2'], | |
85 | 0x5E: ['3', '3'], | |
86 | 0x08: ['4', '4'], | |
87 | 0x1C: ['5', '5'], | |
88 | 0x5A: ['6', '6'], | |
89 | 0x42: ['7', '7'], | |
90 | 0x52: ['8', '8'], | |
91 | 0x4A: ['9', '9'], | |
92 | } | |
12fecc8f | 93 | } |