CircuitPython port of Arduino Switec X25 library.
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.
import jake_switecx25
STEPS = 315*3
motor = jake_switecx25.Jake_SwitecX25(STEPS, board.IO2, board.IO3, board.IO4, board.IO5)
motor.zero()
motor.set_position(STEPS / 2)
while True:
motor.update()
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.