summaryrefslogtreecommitdiff
path: root/decoders/ir_nec/lists.py
blob: dbb9288d2b864778e74a45ea911318e9da4dd638 (plain)
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
##
## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2014 Uwe Hermann <uwe@hermann-uwe.de>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, see <http://www.gnu.org/licenses/>.
##

# Addresses/devices. Items that are not listed are reserved/unknown.
address = {
    0x00: 'Joy-it SBC-IRC01',
    0x40: 'Matsui TV',
    0xEA41: 'Unknown LED Panel',
}

digits = {
    0: ['0', '0'],
    1: ['1', '1'],
    2: ['2', '2'],
    3: ['3', '3'],
    4: ['4', '4'],
    5: ['5', '5'],
    6: ['6', '6'],
    7: ['7', '7'],
    8: ['8', '8'],
    9: ['9', '9'],
}

# Commands. Items that are not listed are reserved/unknown.
command = {
    0x40: dict(list(digits.items()) + list({
        11: ['-/--', '-/--'],
        16: ['Mute', 'M'],
        18: ['Standby', 'StBy'],
        26: ['Volume up', 'Vol+'],
        27: ['Program up', 'P+'],
        30: ['Volume down', 'Vol-'],
        31: ['Program down', 'P-'],
        68: ['AV', 'AV'],
    }.items())),

    # This is most likely a generic remote control. The PCB
    # has space for 16 buttons total, of which not all are
    # connected. The PCB is marked "JSY", "XSK-5462", and
    # "2014-6-12 JW". It consists of only a single IC, marked
    # "BJEC107BNE" or similar. The following buttons are
    # marked for the remote control of a LED panel this was
    # found in.
    0xEA41: {
        0x10: ['Warmer', 'T+'],
        0x11: ['Colder', 'T-'],
        0x12: ['Brighter', '+'],
        0x13: ['Darker', '-'],
        0x14: ['Off', 'O'],
        0x15: ['On', 'I'],
        0x41: ['Min Brightness', 'Min'],
        0x48: ['Max Brightness', 'Max'],
    },
    0x00: {
        0x45: ['Volume down', 'Vol-'],
        0x46: ['Play/Pause', 'P/P'],
        0x47: ['Volume up', 'Vol+'],
        0x44: ['Setup', 'Set'],
        0x40: ['Up', 'U'],
        0x43: ['Stop / Mode', 'S/M'],
        0x07: ['Left', 'L'],
        0x15: ['Enter', 'E'],
        0x09: ['Right', 'R'],
        0x16: ['0 / 10+', '0'],
        0x19: ['Down', 'D'],
        0x0D: ['Back', 'B'],
        0x0C: ['1', '1'],
        0x18: ['2', '2'],
        0x5E: ['3', '3'],
        0x08: ['4', '4'],
        0x1C: ['5', '5'],
        0x5A: ['6', '6'],
        0x42: ['7', '7'],
        0x52: ['8', '8'],
        0x4A: ['9', '9'],
    }
}