Picomotorshim, where for art thou?

Hi All,

I have an RPi Pico and a motor SHIM (link) that has been flashed with the pico-v1.25.0-pimoroni-micropython.uf2 from the GitHib repo.

Before playing with some motors, I thought I’d work through some of the API docs, but failed at the first hurdle - reading the state of the button on the SHIM. It’s failing to import picomotorshim, despite that line being a cut & paste from the API docs.

Listing the modules in the shell using help(“modules”) shows up a motor module, along with a couple of other modules with pimoroni in the name. As far as I understand it, that suggests the board has been flashed with the pimoroni uf2.

That said, the API docs were last updated 3 years ago, so if they are out of date are the any pointers to where I can find a more recent description of the modules and how to use them?

Thanks

If your coding in Micro Python I think you need to be here,
pimoroni-pico/micropython/examples/pico_motor_shim at main · pimoroni/pimoroni-pico

Your link took me to the C section.

Looks like it should be from motor import pico_motor_shim - if you could open a Github issue (or better still, submit a PR) to remind us to fix that error in the docs that would be great :)