Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
Mydin-Class-Pico3Mod
(voir la source)
Version du 29 avril 2025 à 00:11
241 octets ajoutés
,
29 avril 2025 à 00:11
→task_setup(): bool
Ligne 151 :
Ligne 151 :
==== task_setup(): bool ====
==== task_setup(): bool ====
−
xxx
+
The overriden task_setup() is used to append the following tasks:
−
async def
__coro_ds18b20(
self
)
+
# The
__coro_ds18b20
task to read the temperature sensor every 10 seconds
(
if has_ds18b20==True
)
and store the value.
−
async def
__coro_monitor
( self ):
+
# The
__coro_monitor
task to check the internal MCU temperature every 60 seconds. Over-temperature will reset the microcontroler.
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
def tasks_setup( self, async_evloop ):
def tasks_setup( self, async_evloop ):
</syntaxhighlight>
</syntaxhighlight>
−
−
==== before_run(): bool ====
==== before_run(): bool ====
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