Modifications

Sauter à la navigation Sauter à la recherche
Ligne 55 : Ligne 55 :     
== Créer un objet moteur ==
 
== Créer un objet moteur ==
OK now that you have the motor HAT object, note that each HAT can control up to 4 motors. And you can have multiple HATs!
+
Voila, maintenant l'objet MotorHat motor HAT est créé! note that each HAT can control up to 4 motors. And you can have multiple HATs!
    
To create the actual DC motor object, you can request it from the MotorHAT object you created above with '''getMotor(num)''' with a value between 1 and 4, for the terminal number that the motor is attached to
 
To create the actual DC motor object, you can request it from the MotorHAT object you created above with '''getMotor(num)''' with a value between 1 and 4, for the terminal number that the motor is attached to
29 917

modifications

Menu de navigation