Home Forums Sparkfun MP3 Shield Library Support Forum SFEMP3Shield works with Arduino Due Reply To: SFEMP3Shield works with Arduino Due


You can have, in the same sketch, devices than use “extended” spi functions and devices than use the “formers” ones. For those ultimate devices, the SPI library use a trick, attributing them the “virtual” chip select 52, despite you connect them to an other CS pin and you control using that real pin.
If you want, you can look at the code, and search word BOARD_SPI_DEFAULT_SS in files:

arduino-1.5.2/hardware/arduino/sam/libraries/SPI.h ,
arduino-1.5.2/hardware/arduino/sam/libraries/SPI.cpp and

I am sure this would be clearer than my bad english…
Hope this would help