Add simple SPI slave example

This commit is contained in:
Victor Lamoine 2018-04-20 17:42:31 +02:00 committed by GitHub
parent 6e814ad5ca
commit a3ae580d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void loop()
{
// Blocking call to read SPI message
uint8_t msg = SPI.transfer(++count);
Serial.print("a Received = 0b");
Serial.print("Received = 0b");
Serial.print(msg, BIN);
Serial.print(", 0x");
Serial.print(msg, HEX);