MySensors Library & Examples  2.3.2
spin.c

Shows how to use SPI interface to transfer a number of bytes to and from an SPI device