on the other hand the readouts gee's messed up if we do not configure SPI

This commit is contained in:
Marcus Nowotny
2012-05-01 11:22:55 +02:00
parent fc259f3295
commit 02b45422e8

View File

@@ -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