Différences entre versions de « Pololu-Zumo-Shield-Arduino-servo-leonardo »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{Pololu-Zumo-Shield-Arduino-NAV}} {{traduction}} {{Pololu-Zumo-Shield-Arduino-TRAILER}} »)
 
Ligne 2 : Ligne 2 :
  
 
{{traduction}}
 
{{traduction}}
 +
 +
The example Arduino Uno code below shows how to control a single servo using Timer 2. Because it uses Timer 2 instead of Timer 1, this code does not interfere with the ZumoMotors library, but it will interfere with the ZumoBuzzer library, so you will not be able to use this and the buzzer at the same time. You can integrate this code with other code that drives the motors.
 +
 +
<syntaxhighlight lang="c">
 +
 +
</syntaxhighlight>
  
 
{{Pololu-Zumo-Shield-Arduino-TRAILER}}
 
{{Pololu-Zumo-Shield-Arduino-TRAILER}}

Version du 17 avril 2017 à 10:51

The example Arduino Uno code below shows how to control a single servo using Timer 2. Because it uses Timer 2 instead of Timer 1, this code does not interfere with the ZumoMotors library, but it will interfere with the ZumoBuzzer library, so you will not be able to use this and the buzzer at the same time. You can integrate this code with other code that drives the motors.


Basé sur "Zumo Shield for Arduino" de Pololu (www.pololu.com/docs/0J57) - Traduit en Français par shop.mchobby.be CC-BY-SA pour la traduction
Toute copie doit contenir ce crédit, lien vers cette page et la section "crédit de traduction". Traduit avec l'autorisation expresse de Pololu (www.pololu.com)

Based on "Zumo Shield for Arduino" from Pololu (www.pololu.com/docs/0J57) - Translated to French by shop.mchobby.be CC-BY-SA for the translation
Copies must includes this credit, link to this page and the section "crédit de traduction" (translation credit). Translated with the Pololu's authorization (www.pololu.com)