#1 Structure Explanation

开启中
david3 年之前创建 · 1 条评论

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 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。