Update SPI function.c

3397 and Loading arrays used