Add simple SPI slave example
This commit is contained in:
parent
6e814ad5ca
commit
a3ae580d19
|
@ -29,7 +29,7 @@ void loop()
|
||||||
{
|
{
|
||||||
// Blocking call to read SPI message
|
// Blocking call to read SPI message
|
||||||
uint8_t msg = SPI.transfer(++count);
|
uint8_t msg = SPI.transfer(++count);
|
||||||
Serial.print("a Received = 0b");
|
Serial.print("Received = 0b");
|
||||||
Serial.print(msg, BIN);
|
Serial.print(msg, BIN);
|
||||||
Serial.print(", 0x");
|
Serial.print(", 0x");
|
||||||
Serial.print(msg, HEX);
|
Serial.print(msg, HEX);
|
||||||
|
|
Loading…
Reference in New Issue