chore: update all SPI usage to use either *machine.SPI or drivers.SPI to accomodate recent switch in machine package

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2025-03-11 18:27:15 +01:00
committed by Ron Evans
parent 6e04decf19
commit 156d6e7c9c
18 changed files with 33 additions and 28 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func main() {
//bind csPin to driverAdddress
driverAddress := uint8(0) // Let's assume we are working with driver at address 0x01
// Step 3. Bind the communication interface to the protocol
comm := tmc5160.NewSPIComm(*spi, csPins)
comm := tmc5160.NewSPIComm(spi, csPins)
// Step 4. Define your stepper like this below
//stepper := tmc5160.NewStepper(angle , gearRatio vSupply rCoil , lCoil , iPeak , rSense , mSteps, fclk )
stepper := tmc5160.NewDefaultStepper() // Default Stepper should be used only for testing.