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