There are examples for SPI master & slave on the ME Labs web site.