From af9d464f6f27736489274cb80f37313b311dd45d Mon Sep 17 00:00:00 2001 From: drf5n Date: Thu, 26 Sep 2024 21:51:17 -0400 Subject: [PATCH] Update introduction-to-the-serial-peripheral-interface.md Changed the `Serial.print(char,BYTE)` lines in the code to remove the unnecessary "`,BYTE`" error. "BYTE" causes errors as it is undefined. --- ...roduction-to-the-serial-peripheral-interface.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md b/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md index 419e6d0e76..5c1409753d 100644 --- a/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md +++ b/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md @@ -241,11 +241,11 @@ delay(10); We end the setup function by sending the word "hi" plus a line feed out the built in serial port for debugging purposes. This way if our data comes out looking funny later on we can tell it isn't just the serial port acting up: ```arduino -Serial.print('h',BYTE); +Serial.print('h'); - Serial.print('i',BYTE); + Serial.print('i'); - Serial.print('\n',BYTE);//debug + Serial.print('\n');//debug delay(1000); } @@ -431,11 +431,11 @@ void setup() delay(3000); - Serial.print('h',BYTE); + Serial.print('h'); - Serial.print('i',BYTE); + Serial.print('i'); - Serial.print('\n',BYTE);//debug + Serial.print('\n');//debug delay(1000); } @@ -469,7 +469,7 @@ void loop() Serial.print(eeprom_output_data,DEC); - Serial.print('\n',BYTE); + Serial.print('\n'); address++;