This may prove useful:
your c code uses the DRV8825 driver which is available from pololu.
links:
https://www.ti.com/lit/ds/symlink/drv8825.pdf and https://www.pololu.com/product/2133
https://www.pololu.com/file/0J603/drv882...iagram.pdf
software (no python though) https://github.com/pololu/high-power-ste...er-arduino
Adafruit has a driver that they make which uses either arduino C, or CircuitPython it is their own design which used PWM to control the stepper, however comparing the C code vs Python may be helpful. More here: https://www.mouser.com/new/adafruit/adaf...ing-addon/
The pin numbers will be different, but names should be the same
your c code uses the DRV8825 driver which is available from pololu.
links:
https://www.ti.com/lit/ds/symlink/drv8825.pdf and https://www.pololu.com/product/2133
https://www.pololu.com/file/0J603/drv882...iagram.pdf
software (no python though) https://github.com/pololu/high-power-ste...er-arduino
Adafruit has a driver that they make which uses either arduino C, or CircuitPython it is their own design which used PWM to control the stepper, however comparing the C code vs Python may be helpful. More here: https://www.mouser.com/new/adafruit/adaf...ing-addon/
The pin numbers will be different, but names should be the same