fix SPI output pins to be bidirectional