• [^] # Re: betement

    Posté par . En réponse au message problème rebond moteur Python 3 COO. Évalué à 1.

    Bonsoir,

    Je l'ai fait mais ça crée un boucle plus longue à l'arrêt
    un aller et un retour

    if ccDir=="ccstop":
     GPIO.output(self.MoteurOutputPinL,GPIO.LOW)
     GPIO.output(self.MoteurOutputPinR,GPIO.LOW)
     GPIO.output(self.MoteurOutputPinN,GPIO.HIGH)
     for dc in range(100, -1, -10):
     self.V1.ChangeDutyCycle(dc)
     time.sleep(self.t)