tripipy icon indicating copy to clipboard operation
tripipy copied to clipboard

Q: Two motors

Open SCiunczyk opened this issue 4 years ago • 11 comments

Hi,

I have working "Pi HAT" now - both drivers are working perfectly on RPi4 . As I'm not very strong in python .... yet ;-) I'm not sure what is the best approach to have two channels working on this same time. It's possible to pass parameters to chipdrive.tmc5130 constructor? I mean something like this

motorpan=chipdrive.tmc5130(drvenpin=12, spiChannel=1) motortilt=chipdrive.tmc5130(drvenpin=24, spiChannel=0)

Thanks for your indulgence.

Slawek

IMAG1778

IMAG1779

SCiunczyk avatar Jun 30 '20 19:06 SCiunczyk