summaryrefslogtreecommitdiff
path: root/decoders/ir_nec/lists.py
blob: 1754cd13c295f04986141d622c45fb405d600c5e (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
##
## 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 = {
    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'],
    },
}