MySensors Library & Examples  2.3.2
spi.c

Shows how to use SPI interface to transfer a byte to and from an SPI device