#1 Structure Explanation

Terbuka
dibuka 3 tahun lalu oleh david · 1 komentar

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 komentar 3 tahun lalu
Pemilik

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.
Masuk untuk bergabung dalam percakapan ini.
Tidak ada tonggak
Tidak ada penerima
1 Peserta
Memuat...
Batal
Simpan
Belum ada konten.