From e652045ce84afb1afbb4c8bd9ebb131fc4811928 Mon Sep 17 00:00:00 2001 From: LEYAO LI Date: Sat, 3 Apr 2021 23:26:50 -0400 Subject: [PATCH] Motor 1 bug fix --- final_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/final_demo.py b/final_demo.py index ef8235b49..7da791bc8 100644 --- a/final_demo.py +++ b/final_demo.py @@ -39,8 +39,8 @@ class Motor: self.motorStop=False self.EN1.ChangeDutyCycle(50) self.EN2.ChangeDutyCycle(50) - GPIO.output(self.Motor1['input1'], GPIO.HIGH) - GPIO.output(self.Motor1['input2'], GPIO.LOW) + GPIO.output(self.Motor1['input1'], GPIO.LOW) + GPIO.output(self.Motor1['input2'], GPIO.HIGH) GPIO.output(self.Motor2['input1'], GPIO.HIGH) GPIO.output(self.Motor2['input2'], GPIO.LOW) print("motor is turned on")