"- SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language. "
However I see there is an SPI.h library available. Does this not work with the Nano?
So I got this working just fine but I have another question: I'm only sending data out from the Nano so the MISO pin (12) is unused. Can I use this as a generic IO pin as usual or does the SPI library get confused?
kbrown:
So I got this working just fine but I have another question: I'm only sending data out from the Nano so the MISO pin (12) is unused. Can I use this as a generic IO pin as usual or does the SPI library get confused?
Alternatively does anyone know of an IC that could convert 8-bit parallel data into SPI serial data?
When the SPI hardware outputs on MOSI, it inputs on MISO at the same time.
You might be able to add
SPI.end();
before using the pin for other stuff, if that works be sure to add
SPI.begin();
before making another SPI.transfer();