Python Library to controll a stepper motor with a DRV8825 driver connected to a Raspberry Pi
$ pip install rpi_python_drv8825
or clone repository
from rpi_python_drv8825.stepper import StepperMotor
motor = StepperMotor(enable_pin, step_pin, dir_pin, mode_pins, step_type, fullstep_delay)
motor.enable(True) # enables stepper driver
motor.run(6400, True) # run motor 6400 steps clowckwise
motor.run(6400, False) # run motor 6400 steps counterclockwise
motor.enable(False) # disable stepper driver