#1 Structure Explanation

Ouvert
Créé il y a 3 ans par david · 1 commentaires

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 a commenté il y a 3 ans
Propriétaire

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.
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataire
1 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.