Wearables

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 https://www.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.
howfastMar 07,2016 06:39 AMAdd Comment

Comment

Popular Topics