Add simple SPI slave example
This commit is contained in:
parent
a3ae580d19
commit
652569c079
|
@ -1,7 +1,7 @@
|
||||||
// SPI slave example
|
// SPI full-duplex slave example
|
||||||
// STM32 acts as a SPI slave an reads 8 bit data frames over SPI
|
// STM32 acts as a SPI slave and reads 8 bit data frames over SPI.
|
||||||
// The data sent to the master is a simple count (0, 1, 2, 3) that is incremented
|
// Master also gets a reply from the slave, which is a a simple count (0, 1, 2, 3)
|
||||||
// each time a data frame is received.
|
// that is incremented each time a data frame is received.
|
||||||
// Serial output is here for debug
|
// Serial output is here for debug
|
||||||
|
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
|
|
Loading…
Reference in New Issue