#include <SPI.h>
// pins used for the connection with the sensor
// the other you need are controlled by the SPI library):
const int chipSelectPin = 10;
int16_t RxData1, RxData2;
void setup() {
Serial.begin(115200);
// start the SPI library:
SPI.begin();
SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE0));
// initialize the data ready and chip select pins:
pinMode(chipSelectPin, OUTPUT);
RxData1 = SPI.transfer(0xf0);
RxData2 = SPI.transfer(0x0f);
Serial.println(RxData1);
Serial.println(RxData2);
delay(100);
Serial.println("Done");
}
void loop() {
}