Make the order of these changes clearer.

This commit is contained in:
Danny Staple
2022-06-13 08:55:04 +01:00
parent 2bb551e45f
commit f72a3edc75
2 changed files with 0 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import board
import pwmio
motor_A1 = pwmio.PWMOut(board.GP17)
motor_A2 = pwmio.PWMOut(board.GP16)
motor_B1 = pwmio.PWMOut(board.GP18)
motor_B2 = pwmio.PWMOut(board.GP19)
def stop():
motor_A1.duty_cycle = 0
motor_A2.duty_cycle = 0
motor_B1.duty_cycle = 0
motor_B2.duty_cycle = 0