Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from gpiozero import Motor
from time import sleep
import numpy as np
motor = Motor(forward=20, backward=21)
for t in range(0,5):
motor.forward(1.0)
sleep(2)
motor.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.