It should be a simple conversion, assuming that the Raspberry Pi operates as expected - [Github repo](https://github.com/adafruit/Adafruit_CircuitPython_MotorKit) - [CircuitPython docs](https://docs.circuitpython.org/projects/motorkit/en/latest/)