Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
Mydin-classes-diagram
(voir la source)
Version du 27 avril 2025 à 21:07
767 octets ajoutés
,
27 avril 2025 à 21:07
→feed_watchdog()
Ligne 156 :
Ligne 156 :
def feed_watchdog( self ):
def feed_watchdog( self ):
</syntaxhighlight>
</syntaxhighlight>
+
+
==== task_setup() ====
+
+
{{dbox-orange| Overridable method}}
+
+
This method setup the ''userloop'' then calls the {{fname|on_task_create}} event (when provided to the {{fname|setup()}} method.
+
+
That method is usually overrided in descendant class to append Controler specific tasks (eg: the PicoControler append monitoring and ds18b20 tasks).
+
+
<syntaxhighlight lang="python">
+
def tasks_setup( self, async_evloop ):
+
</syntaxhighlight>
+
+
{{Ambox
+
| type = delete
+
| image = [[File:StopHand.png|40px|alt=Stop]]
+
| textstyle = color: red; font-weight: bold; font-style: italic;
+
| text = Do not confuse the override operation (used by subclass to create their tasks) with the {{fname|on_task_create}} event allowing the user code to create their own tasks. }}
Admin
Bureaucrates
,
Administrateurs
32 908
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable