kopia lustrzana https://github.com/pimoroni/pimoroni-pico
12 wiersze
278 B
Python
12 wiersze
278 B
Python
|
from motor import Motor, pico_motor_shim
|
||
|
|
||
|
"""
|
||
|
A simple program that stops the motors.
|
||
|
"""
|
||
|
|
||
|
# Create two motor objects.
|
||
|
# This will initialise the pins, stopping any
|
||
|
# previous movement that may be stuck on
|
||
|
m1 = Motor(pico_motor_shim.MOTOR_1)
|
||
|
m2 = Motor(pico_motor_shim.MOTOR_2)
|