#1 Structure Explanation

Otevřený
otevřeno před 3 roky uživatelem david · 1 komentářů

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 okomentoval před 3 roky
Vlastník

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.
Přihlaste se pro zapojení do konverzace.
Bez milníku
Bez zpracovatele
1 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.