#ifndef SOFTWARE_SPI_H_ #define SOFTWARE_SPI_H_ #include #include #include #define delay 2 //PC0 = clock //PC1 = MOSI (output) //PC2 = MISO (input) //PC3-5 empty #define CLK_invert PORTC ^= (1<