Ligne 43 : |
Ligne 43 : |
| Adafruit_MotorShield AFMStop(0x60); // Adresse par défaut, sans pontage</nowiki> | | Adafruit_MotorShield AFMStop(0x60); // Adresse par défaut, sans pontage</nowiki> |
| | | |
− | * Un des shield moteur est nommé AFMSbot (Shield du bas, pour mémoire. "''bot''" signifie "robot") | + | * Un des shield moteur est nommé AFMSbot (Shield du bas, pour mémoire. "''bottom''" signifie "bas") |
| * L'autre shield est nommé AFMStop (le shield du haut, "''top''" signifiant "haut"). | | * L'autre shield est nommé AFMStop (le shield du haut, "''top''" signifiant "haut"). |
| | | |
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}} |