Multiple ADXL362 project

Hi,

I’m trying to connect 8 ADXL362 accelerometers to an Arduino DUE using SPI protocol

ADXL362:

SPI:
https://learn.sparkfun.com/tutorials/serial-peripheral-interface-spi

If possible, I need to hear from you some guidelines on the preferred way of connection as well as writing a program that takes reading from these sensors, and what additions to the following code to add

There is an example that works with one sensor that is:

#include <SPI.h>
#include <ADXL362.h>

ADXL362 xl;

int16_t temp;
int16_t XValue, YValue, ZValue, Temperature;

void setup(){

Serial.begin(9600);
xl.begin(10); // Setup SPI protocol, issue device soft reset
xl.beginMeasure(); // Switch ADXL362 to measure mode

Serial.println(“Start Demo: Simple Read”);
}

void loop(){

// read all three axis in burst to ensure all measurements correspond to same sample time
xl.readXYZTData(XValue, YValue, ZValue, Temperature);
Serial.print(“XVALUE=”);
Serial.print(XValue);
Serial.print("\tYVALUE=");
Serial.print(YValue);
Serial.print("\tZVALUE=");
Serial.print(ZValue);
Serial.print("\tTEMPERATURE=");
Serial.println(Temperature);
delay(100); // Arbitrary delay to make serial monitor easier to observe
}

Thanks All,