make sure spi init correctly sets output pins as well as input pins