Modifications

Sauter à la navigation Sauter à la recherche
Ligne 65 : Ligne 65 :     
=== Initialiser ===
 
=== Initialiser ===
Then, both shields must have '''begin''' called, before you use the motors connected
+
Ensuite, vous devez appeler la fonction '''begin''' pour les deux shields.
<nowiki>AFMSbot.begin(); // Start the bottom shield
+
Cette opération doit être réaliser avec d'utiliser les moteurs qui y sont connectés.
AFMStop.begin(); // Start the top shield</nowiki>
     −
You can try out this code for yourself by setting up two shields and running the '''File->Examples->Adafruit_MotorShield->StackingTest''' example
+
<nowiki>AFMSbot.begin(); // Démarrer le shield du bas (bot)
 +
AFMStop.begin(); // Démarrer le shield du haut (top)</nowiki>
 +
 
 +
Vous pouvez essayer ce code pour 2 shields à partir du code d'exemple '''Fichier -> Exemples -> Adafruit_MotorShield -> StackingTest'''
    
{{Adafruit Motor Shield V2-TRAILER}}
 
{{Adafruit Motor Shield V2-TRAILER}}
29 917

modifications

Menu de navigation