#1 Structure Explanation

Отворено
отворено пре 3 година од david · 1 коментара
David Thielemann коментирира пре 3 година

remotes.py#L3-L8

tv = {
    "_config": {
        "type": "NEC",
        "size": 32,
        "repeat": 2,
        "repeat_with": None
    },
}

The _config dict will contain what the IR Codes have been somewhat identified as (either accurate or not), it's size in bytes, and if there was a repeated value/code.

This way I can refer to parts of the _config section to know general information for sending it.

See also remotes.py#L29-L34

[remotes.py#L3-L8](https://git.red-green.com/david/IRremote/src/master/remotes.py#L3-L8) ```py tv = { "_config": { "type": "NEC", "size": 32, "repeat": 2, "repeat_with": None }, } ``` The `_config` dict will contain what the IR Codes have been somewhat identified as (either accurate or not), it's size in bytes, and if there was a repeated value/code. This way I can refer to parts of the _config section to know general information for sending it. See also [remotes.py#L29-L34](https://git.red-green.com/david/IRremote/src/master/remotes.py#L29-L34)
David Thielemann коментирира пре 3 година
Власник

To use the codes it should simply be: from remotes import tv, movie_box and then use them.

To use the codes it should simply be: `from remotes import tv, movie_box` and then use them.
Пријавите се да се прикључе у овом разговору.
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.