Modifications

Sauter à la navigation Sauter à la recherche
Ligne 58 : Ligne 58 :     
== AT+HWGPIO ==
 
== AT+HWGPIO ==
Gets or sets the value of the specified GPIO pin (depending on the pin's mode).
+
Lire ou fixer la valeur de la broche GPIO spécifiée (en fonction du mode de la broche).
    
* Codebase Revision: 0.3.0
 
* Codebase Revision: 0.3.0
* Paramètres: The Paramètres for this command change depending on the pin mode.
+
* Paramètres: les paramètres de cette commande changent en fonction du mode de la broche.
    
=== GPIO en sortie ===
 
=== GPIO en sortie ===
OUTPUT MODE: The following comma-separated Paramètres can be used when updating a pin that is set as an output:
+
MODE DE SORTIE/OUTPUT MODE: Les paramètres suivants (séparés par des virgules) peuvent être utilisés pour modifier l'état d'une broche configurée en sortie:
 
+
* Numéro de broche
* Pin numbers
+
* Etat de la broche, :
* Pin state, where:
+
** 0 = désactive la broche (Niveau logique bas/LOW/GND)
** 0 = clear the pin (logic low/GND)
+
** 1 = active la broche (Niveau logique haut/HIGH/VCC)
** 1 = set the pin (logic high/VCC)
      
=== GPIO en entrée ===
 
=== GPIO en entrée ===
INPUT MODE: To read the current state of an input pin or a pin that has been configured as an output, enter the pin number as a single parameter.
+
MODE ENTREE/INPUT MODE: Pour lire létat actuel d'une broche en entrée (ou lire l'état d'une broche en sortie). Utiliser le numéro de broche comme le seul paramètre de la commande.
   −
* Sortie: The pin state if you are reading an input or checking the state of an input pin (meaning only 1 parameter is supplied, the pin number), where:
+
* Sortie: L'état de la broche si vous lisez une entrée (ou vérifiez l'état de sortie d'une broche). La valeur retournée est:
** 0 means the pin is logic low/GND
+
** 0 signifiant que la broche est au niveau logique bas/LOW/GND
** 1 means the pin is logic high/VCC
+
** 1 signifiant que la broche est au niveai logique haut/HIGH/VCC
    
=== Recommendation ===
 
=== Recommendation ===
{{ambox-stop|text=Trying to set the value of a pin that has not been configured as an output will produce an 'ERROR' response.}}
+
{{ambox-stop|text=Essayer de fixer l'état d'une broche qui n'a pas encore été configurée produira la réponse 'ERROR'.}}
{{ambox-stop|text=Some pins are reserved for specific functions on Bluefruit modules and can not be used as GPIO. If you try to make use of a reserved pin number an 'ERROR' response will be generated. }}
+
{{ambox-stop|text=Certaines broches du BlueFruit LE sont réservée pour des fonctions spécifiques. Ces broches ne peuvent pas être utilisées comme GPIO. La commande génèrera une erreur si vous essayez d'utiliser ces numéros réservés. }}
    
=== Exemples ===
 
=== Exemples ===
  <nowiki># Set pin 14 HIGH
+
  <nowiki># Place la broche 14 au niveau haut/HIGH
 
AT+HWGPIO=14,1
 
AT+HWGPIO=14,1
 
OK
 
OK
 
    
 
    
# Set pin 14 LOW
+
# Place la broche 14 au niveau bas/LOW
 
AT+HWGPIO=14,0
 
AT+HWGPIO=14,0
 
OK
 
OK
 
    
 
    
# Read the current state of pin 14
+
# Lire l'état de la broche 14 14
 
AT+HWGPIO=14
 
AT+HWGPIO=14
 
0
 
0
 
OK
 
OK
 
    
 
    
# Try to update a pin that is not set as an output
+
# Essayer de modifier une broche qui n'est pas
 +
# configuré en sortie/output
 
AT+HWGPIOMODE=14,0
 
AT+HWGPIOMODE=14,0
 
OK
 
OK
29 917

modifications

Menu de navigation