pimoroni-pico/micropython/examples/motor2040/stop_motors.py

14 lines
321 B
Python
Raw Normal View History

2022-04-07 17:57:38 +01:00
from motor import Motor, motor2040
"""
2022-04-25 12:28:42 +01:00
A simple program that stops the motors.
2022-04-07 17:57:38 +01:00
"""
# Create four motor objects.
# This will initialise the pins, stopping any
# previous movement that may be stuck on
2022-04-20 18:55:39 +01:00
mA = Motor(motor2040.MOTOR_A)
mB = Motor(motor2040.MOTOR_B)
mC = Motor(motor2040.MOTOR_C)
mD = Motor(motor2040.MOTOR_D)