A simple sample to explain how SPI works