SPI settings

I’m trying to connect a Xadow to a BM019 NFC reader via the breakout. There is example code for connecting this interface to an UNO. I’ve tweaked the settings so the right pins are used - however its still not working.

My question is… in the uno code are these settings for the SPI communication

Serial.begin(9600);
SPI.begin();
SPI.setDataMode(SPI_MODE0);
SPI.setBitOrder(MSBFIRST);
SPI.setClockDivider(SPI_CLOCK_DIV32);

Reading this page arduino.cc/en/Reference/SPI it seems that these settings are specific to the Xadow (or edison). Could anyone advise or provide example code for using the SPI communications on the Xadow.

Hello,

I hope you are referring to Xadow Mainboards(Which is based on ATmega32U4). Yes, the SPI documentation describes the API used for SPI communication. Please refer the examples mentioned in the page writing driver for your BM019 NFC reader.

Thanks and Warm Regards.