Modifications

Aller à : navigation, rechercher

CellarKare

258 octets ajoutés, 28 octobre 2015 à 22:47
Bouton OFF
<syntaxhighlight lang="python">
# La fonction qui effectuer l'arrêt propre du RPi
</syntaxhiglight>
<syntaxhighlight lang="python" class="mw-collapsible mw-collapsed">
def btn_proper_halt(pin):
global off_state, cur_millis, off_millis
<syntaxhighlight lang="python">
# Fonction de terminaison du programme (appelée lorsque le script est arrêté
</syntaxhiglight>
<syntaxhighlight lang="python" class="mw-collapsible mw-collapsed">
def terminate():
logging.debug("Terminate function started")
<syntaxhighlight lang="python">
# Fonction d'initialisation
</syntaxhiglight>
<syntaxhighlight lang="python" class="mw-collapsible mw-collapsed">
def initialize():
global lcd

Menu de navigation