Example #1
0
    def __init__(self, command_id):
        super().__init__(command_id, 'i16')

        self.delimiter_pin = pyb.Pin("Y1", pyb.Pin.IN, pyb.Pin.PULL_UP)

        self.stepper = Stepper(200, 25, "Y3", "Y4", "Y5", "Y6")
Example #2
0
import pyb
from libraries.stepper import Stepper

stepper = Stepper(200, 25, "Y3", "Y4", "Y5", "Y6")

while True:
    steps = int(input("steps: "))
    stepper.step(steps)
    pyb.delay(500)