Exemple #1
0
import motor
from mpython import sleep
motor.run(motor.M2, motor.CW, 100)
sleep(5)
motor.run(motor.M2, motor.CCW, 200)
sleep(5)
motor.stopall()
Exemple #2
0
def walk():
    motor.run(enable_pin, forward_pin, reverse_pin)