#include #define DD_MOSI PINB3 #define DD_SCK PINB5 #define DDR_SPI PORTB void SPI_MasterInit(void) { // Set MOSI and SCK output, all others input DDR_SPI = (1<