Don’t know if this has been reported but last night I was running some code that begins by initializing the SPI interface:
SPI.begin(); SPI.setClockDivider(SPI_CLOCK_DIV64); SPI.setDataMode(SPI_MODE0);
However, the SPI wasn’t working and I noticed that the SPI clock signal was the wrong polarity and waaaaay faster than what my HW could handle. To solve the problem, I added a brief delay between the above statements:
SPI.begin(); delay(1); SPI.setClockDivider(SPI_CLOCK_DIV64); delay(1); SPI.setDataMode(SPI_MODE0);
And voila, the problem went away. Anybody else experience this problem?