Motor 1 bug fix
This commit is contained in:
parent
76da8a15d5
commit
e652045ce8
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue