// MasterOutSlaveIn #define DD_MOSI DDB2 // MasterInSlaveOut #define DD_MISO DDB3 // SourceClock #define DD_SCK DDB1 // SlaveSelect #define DD_SS DDB0 void SPI_MasterInit(void) { /* Set MOSI and SCK and SS to output, all others input */ DDRB = (1<