Modifications

Sauter à la navigation Sauter à la recherche
305 octets ajoutés ,  20 mai 2017 à 12:15
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}}
29 917

modifications

Menu de navigation