Last active
July 7, 2019 19:33
-
-
Save EspaceRaspberryFrancais/192cb2d07ce76d0d75b6334dc068f6ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialisation | |
M1_Vitesse = GPIO.PWM(M1_En, frequence) | |
M1_Vitesse.start(rapportCyclique) # On entre ici un rapport cyclique entre 0 et 100 (pourcentages) | |
# Changement des valeurs | |
M1_Vitesse.ChangeFrequency(frequence) | |
M1_Vitesse.ChangeDutyCycle(rapportCyclique) | |
# Arret de la modulation | |
M1_Vitesse.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment