• # J'ai fini par trouver ;-)

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

    alors pour ceux qui en auraient besoin
    j'ai séparé la fonction stop et créer une nouvelle définition,
    et modifier l'adresse de la fonction stop dans le serveur

    def ccManStop(self,ccstop=""):
     if ccstop=="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)