Use SPI.h instead of recreating the same code.