Modifications

Sauter à la navigation Sauter à la recherche
6 octets ajoutés ,  20 mai 2017 à 12:11
aucun résumé de modification
Ligne 38 : Ligne 38 :  
  pfd = pifacedigitalio.PiFaceDigital()
 
  pfd = pifacedigitalio.PiFaceDigital()
   −
== Sorties ==
+
=== Sorties ===
 
Set the first output pin to ''1'' (the on state):
 
Set the first output pin to ''1'' (the on state):
   Ligne 48 : Ligne 48 :  
  pfd.output_pins[0].value = 0
 
  pfd.output_pins[0].value = 0
   −
== Entrées ==
+
=== Entrées ===
 
You can read the value of an input pin like this:
 
You can read the value of an input pin like this:
   Ligne 55 : Ligne 55 :  
Try running the above command with the second switch pressed and then again with it unpressed and you should get different results.
 
Try running the above command with the second switch pressed and then again with it unpressed and you should get different results.
   −
== input_port et output_port ==
+
=== input_port et output_port ===
 
You can read the whole input port by reading the value of the input_port attribute:
 
You can read the whole input port by reading the value of the input_port attribute:
 
   
 
   
29 917

modifications

Menu de navigation