Skip to content

Commit af9d464

Browse files
authored
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.
1 parent 48db249 commit af9d464

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ delay(10);
241241
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:
242242

243243
```arduino
244-
Serial.print('h',BYTE);
244+
Serial.print('h');
245245
246-
Serial.print('i',BYTE);
246+
Serial.print('i');
247247
248-
Serial.print('\n',BYTE);//debug
248+
Serial.print('\n');//debug
249249
250250
delay(1000);
251251
}
@@ -431,11 +431,11 @@ void setup()
431431
432432
delay(3000);
433433
434-
Serial.print('h',BYTE);
434+
Serial.print('h');
435435
436-
Serial.print('i',BYTE);
436+
Serial.print('i');
437437
438-
Serial.print('\n',BYTE);//debug
438+
Serial.print('\n');//debug
439439
440440
delay(1000);
441441
}
@@ -469,7 +469,7 @@ void loop()
469469
470470
Serial.print(eeprom_output_data,DEC);
471471
472-
Serial.print('\n',BYTE);
472+
Serial.print('\n');
473473
474474
address++;
475475

0 commit comments

Comments
 (0)