I'm trying to use the SPI interface on the Arduino Due to read/write to 2 devices. I've noticed there are two ways to code it as the Due has the extended library. In the documentation it is suggested that SPISettings class should be used to set up the communication variables, but I haven't found an example of it being used with the extended library. Do I need to call SPI.begin(PIN_NUMBER) and then SPI.beginTransaction(PIN_NUMBER, SPISettings)? Or just SPI.beginTransaction(PIN_NUMBER, SPISettings) alone? Is beginTransaction compatible with a PIN_NUMBER input?
Thanks for your help.