Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
PiFace2-Manuel-Python
(voir la source)
Version du 20 mai 2017 à 12:15
305 octets ajoutés
,
20 mai 2017 à 12:15
→Activer un relai
Ligne 67 :
Ligne 67 :
=== Activer un relai ===
=== Activer un relai ===
+
+
The relays on PiFaceTM Digital 2 are connected to the first two outputs, so they can be controlled using the digital_write function.
+
+
Start a new Python interpreter and type the following:
+
+
<syntaxhighlight lang="python">
+
import piface.pfio as pfio
+
pfio.init()
+
pfio.digital_write(0,1)
+
</syntaxhighlight>
{{PiFace2-Manuel-TRAILER}}
{{PiFace2-Manuel-TRAILER}}
Admin
Bureaucrates
,
Administrateurs
29 917
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