Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 104 : Ligne 104 :     
Basculez de nouveau le fil de +5Volts vers la masse (GND) et la valeur lue repassera de nouveau vers 'LOW' (niveau bas).
 
Basculez de nouveau le fil de +5Volts vers la masse (GND) et la valeur lue repassera de nouveau vers 'LOW' (niveau bas).
  −
{{traduction}}
      
Jetons un petit coup d'oeil sous le capot pour voir comment le programme fonctionne pour effectuer les lectures et écritures sur les GPIOs.
 
Jetons un petit coup d'oeil sous le capot pour voir comment le programme fonctionne pour effectuer les lectures et écritures sur les GPIOs.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
# Import standard Python time library.
+
# Importer la bibliothèque standard "time".
 
import time
 
import time
   −
# Import GPIO and FT232H modules.
+
# Importer les modules GPIO et FT232H
 
import Adafruit_GPIO as GPIO
 
import Adafruit_GPIO as GPIO
 
import Adafruit_GPIO.FT232H as FT232H
 
import Adafruit_GPIO.FT232H as FT232H
Ligne 166 : Ligne 164 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Now an infinite loop is entered and the LED is turned on and off using the '''output()''' function on the FT232H object. This function takes two parameters, the first is the pin number and the second is '''GPIO.HIGH/True''' to set the pin to a high level (3.3 volts), or '''GPIO.LOW/False''' to set the pin to a low level (ground).
+
Maintenant que nous démarré une boucle infinie et la LED s'allume et s'éteind en utilisant la fonction '''output()''' de l'objet FT232H.  
 +
 
 +
{{traduction}}
 +
 
 +
This function takes two parameters, the first is the pin number and the second is '''GPIO.HIGH/True''' to set the pin to a high level (3.3 volts), or '''GPIO.LOW/False''' to set the pin to a low level (ground).
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
29 918

modifications

Menu de navigation