17 #define SHIFT_SCLR 21 // ~Master Reset
18 #define SHIFT_RCK 22 // storage register clock input
19 #define SHIFT_G 26 // ~Output Enable
void shift_init(void)
Initializes the shift register.
Definition: spi.cpp:51
void shift_data(uint8_t data)
Sends a byte to the shift register.
Definition: spi.cpp:69
uint8_t spi_readwrite(uint8_t data)
Writes the data on the SPI bus and returns the reply.
Definition: spi.cpp:26
void spi_init(void)
Initializes the SPI bus.
Definition: spi.cpp:39