What is the equivalent of this old SPI code using the current SPI library?
The default is:


Mode 0
MSBFIRST


Not sure on the default speed. But:

setClockDivider() sets a speed relative to the system clock. So it's impossible to say what speed that will be since it'll be different on 8MHz boards compared to 16MHz.

setClockDivider(2) would be the same as using F_CPU/2 as a speed.