mirror of
https://github.com/interactive-matter/TMC26XStepper.git
synced 2026-03-13 09:01:30 +08:00
on the other hand the readouts gee's messed up if we do not configure SPI
This commit is contained in:
@@ -179,9 +179,9 @@ void TMC262Stepper::start() {
|
||||
digitalWrite(cs_pin, HIGH);
|
||||
|
||||
//configure the SPI interface
|
||||
//SPI.setBitOrder(MSBFIRST);
|
||||
//SPI.setClockDivider(SPI_CLOCK_DIV8);
|
||||
//SPI.setDataMode(SPI_MODE3);
|
||||
SPI.setBitOrder(MSBFIRST);
|
||||
SPI.setClockDivider(SPI_CLOCK_DIV8);
|
||||
SPI.setDataMode(SPI_MODE3);
|
||||
SPI.begin();
|
||||
|
||||
//set the initial values
|
||||
|
||||
Reference in New Issue
Block a user