Optical encoder too output moter adafruit motor sheld help

Ok I think we have worked out the the adafruit driver shield can't perform this task anyway the motor in photo is just some old stepper out of a old Epson r210 printer I am upgrading stepper soon too a nema17 maybe bigger in future . Anyway I mainly test the driver boards motor out puts with a volt meter the type u test voltage with . I do not find its really required to connect a motor . As it's very easy to tell if the code is working or not. I would be interested to see if this board can even run a DC motor in the way I want but if you know a way to make a DC motor follow the encoders out put using the motor shield m1-m4 ports I would love to see this work . And possibly see if that code can be modified for a stepper.