Update SPI_support.h

code is really slow