Modifications

Sauter à la navigation Sauter à la recherche
273 octets ajoutés ,  20 novembre 2013 à 11:40
Ligne 350 : Ligne 350 :  
}</nowiki>
 
}</nowiki>
   −
== Using Bridge to pass information between processors ==
+
== Bridge = échange entre les processeurs ==
   −
Bridge allows you to pass information between the two processors using a key/value pairing.
+
le Bridge permet de passer des information entre les deux processeurs en utilisant des paires clé/valeur (dénommé "''key/value pairing''" en anglais).
   −
This example shows how to use the Bridge library to access the digital and analog pins on the board through REST calls. It demonstrates how you can create your own API when using REST style calls through the browser.
+
Cet exemple montre comment utiliser la bibliothèque Bridge pour accéder aux broches analogiques et digitales de la carte par l'intermédiaire d'appels [http://fr.wikipedia.org/wiki/Representational_State_Transfer REST] (''Wikipedia.fr''). Il montre comment créer votre propre API en utilisant le style REST pour faire des appels par l'intermédiaire du navigateur internet.
   −
When running this example, make sure your computer is on the same network as the Yun.
+
Assurez-vous que votre ordinateur partage le même réseau que votre Yùn.
   −
When you have have programmed the board, you can request the value on a pin, write a value to a pin, and configure a pin as an input or output.
+
Lorsque la carte est programmée, vous pouvez: demander la valeur d'une broche, écrire une valeur sur une broche et configurer une broches soit comme entrée ou sortie.
   −
When the REST password is turned off, you can use a browser with the following URL structure :  
+
Lorsque le mot de passe REST est désactivé, vous pouvez naviguer sur les URL structurées suivantes en utilisant votre navigateur:  
* [http://myArduinoYun.local/arduino/digital/13 http://myArduinoYun.local/arduino/digital/13] : calls digitalRead(13);
+
* [http://myArduinoYun.local/arduino/digital/13 http://myArduinoYun.local/arduino/digital/13] : effectue un ''digitalRead(13);''
 
* [http://myArduinoYun.local/arduino/digital/13/1 http://myArduinoYun.local/arduino/digital/13/1] : calls digitalWrite(13,1);
 
* [http://myArduinoYun.local/arduino/digital/13/1 http://myArduinoYun.local/arduino/digital/13/1] : calls digitalWrite(13,1);
 
* [http://myArduinoYun.local/arduino/analog/9/123 http://myArduinoYun.local/arduino/analog/9/123] : analogWrite(9,123);
 
* [http://myArduinoYun.local/arduino/analog/9/123 http://myArduinoYun.local/arduino/analog/9/123] : analogWrite(9,123);
29 917

modifications

Menu de navigation