the SPI module reads and writes at the same time. If you don't want to write a value, then write all zeros or whatever the device you are communicating with wants.
8 lines
86 B
C
8 lines
86 B
C
#ifndef _SPI_H
|
|
#define _SPI_H
|
|
|
|
#include <stdint.h>
|
|
|
|
uint8_t spi_byte(uint8_t);
|
|
|
|
#endif |