add code to set bitOrder for SPI