Finished implementation of SPI communication on the RPI side.