SPI.setBitOrder(MSBFIRST); // Not strictly needed but just to be sure. SPI.setDataMode(SPI_MODE0); // Not strictly needed but just to be sure. // Set SPI clock divider to 16, therfore a 1 MhZ signal ...
SparkFun code, firmware, and software is released under the MIT License. Please see LICENSE.md for further details.
Quick, how do you wire up an SPI bus between a microcontroller and a peripheral? SCK goes to SCK, MISO goes to MISO, and MOSI goes to MOSI, right? Yeah. You’ll need to throw in a chip select pin, but ...