SPI.c
// set SPI data order (lsb or msb first)
set SPI data order (lsb or msb first)
set SPI data order ( lsb or msb first )
void vis_spi_setbitorder(uint8_t bitorder)
{
  if (bitorder == SPI_LSBFIRST) {
    SPCR |= (1 << DORD);
  } else {
    SPCR &= ~(1 << DORD);
  }
}
void vis_spi_setbitorder ( uint8_t bitorder ) { if ( bitorder == SPI_LSBFIRST ) { SPCR |= ( 1 << DORD ) ; } else { SPCR &= ~ ( 1 << DORD ) ; } }
set SPI data order (lsb or msb first)
set SPI data order ( lsb or msb first )