This modification uses SPI.beginTransaction() in order to keep parameters consistent while sharing the hardware SPI bus with peripherals that use other parameters.
Specific changes
Call SPI.beginTransaction() before each chip select.
Use ClaimSPI helper class to avoid repeating conditional before and after each transaction.
This modification uses
SPI.beginTransaction()
in order to keep parameters consistent while sharing the hardware SPI bus with peripherals that use other parameters.Specific changes
SPI.beginTransaction()
before each chip select.