Here are some tutorials that you might find useful.
SPI: How to create a SPI connection between a Raspberry Pi and a SAMD21 (Arduino-based) microcontroller:
Part 1: Pi and Arduino (SAMD21) using SPI
Part 2: Pi and Arduino using Python
Part 3: Bi-directional Communication
More to come…