I see some old library code that initializes SPI this way:
It does not use
endTransaction blocks, and
setClockDivider is now deprecated. The current way to use SPI is to use transaction blocks where you pass the settings in.
What is the equivalent to this code using transaction blocks? Also, since the other settings (max speed, data order, data mode) aren't specified in the above code, there must be defaults. What are these defaults?