1 #ifdef ARDUINO // I'm too lazy to mock the SPI library
27 SPISettings settings = {
SPI_MAX_SPEED, this->bitOrder, SPI_MODE0};
28 SPI.beginTransaction(settings);
30 const uint8_t bufferLength = this->buffer.getBufferLength();
31 if (this->bitOrder == LSBFIRST)
32 for (uint8_t i = 0; i < bufferLength; i++)
33 SPI.transfer(this->buffer.getByte(i));
35 for (int8_t i = bufferLength - 1; i >= 0; i--)
36 SPI.transfer(this->buffer.getByte(i));