Sources/main.c
void shiftout(char x) {
  int i = 10;
  while(!SPISR_SPTEF); // read the SPTEF bit, continue if bit is 1
  SPIDR = x; // write data to SPI data register

  while(i--); // wait for SPI data to shift out
}
/* Transmits the character x to external shift register using the SPI. */
Transmits the character x to external shift register using the SPI.
Transmits the character x to external shift register using the SPI .
void shiftout(char x) {
  int i = 10;
  while(!SPISR_SPTEF); 
  SPIDR = x; 
  while(i--); 
}
void shiftout ( char x ) { int i = 10 ; while ( ! SPISR_SPTEF ) ; SPIDR = x ; while ( i -- ) ; }
Transmits the character x to external shift register using the SPI.
Transmits the character x to external shift register using the SPI .
// read the SPTEF bit, continue if bit is 1 // write data to SPI data register // wait for SPI data to shift out