How to enable the SPI Interface: edit /boot/config.txt add line dtparam=spi=on