I'm having trouble with an SPI device so thought that I would go back to basics and check the reference.
However the Arduino website states "Transfers one byte over the SPI bus, both sending and receiving. " (SPI - Arduino Reference). Then on http://arduino.cc/en/Tutorial/SPIDigitalPot it gives the following example:
void digitalPotWrite(int address, int value) {
digitalWrite(slaveSelectPin,LOW);
SPI.transfer(address);
SPI.transfer(value);
digitalWrite(slaveSelectPin,HIGH);
}
The single SPI.transfer command is transferring two bytes (an integer). If I had a device that needed several parameters could I pass an array to the SPI.transfer and it would cycle through the elements?