MMME encoder

I have a some little motors with the MMME encoder on the back. From the provided example at Micropython examples that they work . I can´t find any information and what the
class encoder wants.

from read_encoders.py

encoders = [Encoder(0, i, ENCODER_PINS[i], counts_per_rev=COUNTS_PER_REV, count_microsteps=True) for i in range(NUM_ENCODERS)]

I would like to know if set up ëncoder’so that when I quit the program that uses the MMME if when I run the program agian it knows where the motor shaft was.

Any hints? Where can I find some docs

Angel

The Motor library docs cover the encoders briefly: pimoroni-pico/micropython/modules/motor at main · pimoroni/pimoroni-pico · GitHub
and the Encoder library docs go into more depth: pimoroni-pico/micropython/modules/encoder at main · pimoroni/pimoroni-pico · GitHub