tomvik / Pi-4WD-Smart-Robot

Yahboom Raspberry Pi-4WD smart robot from scratch
MIT License
0 stars 0 forks source link

[Motor] Check if GPIO.LOW works as well. #5

Open github-actions[bot] opened 9 months ago

github-actions[bot] commented 9 months ago

https://github.com/tomvik/Pi-4WD-Smart-Robot/blob/c6a7b40ed067310ffbadf8d0402964d1a2a5f3c1/Python/src/Motor.py#L37


        """
        GPIO.setup(self.firstPin, GPIO.OUT, initial = GPIO.LOW)
        GPIO.setup(self.secondPin, GPIO.OUT, initial = GPIO.LOW)
        # TODO: [Motor] Check if GPIO.LOW works as well.
        GPIO.setup(self.pwmPin, GPIO.OUT, initial = GPIO.HIGH)
        self.pwm = GPIO.PWM(self.pwmPin, self.pwmFrequency)