Skip to content

Commit c949bb2

Browse files
author
SimonePDA
authored
Update print.adoc
Fixed the sketch to be properly formatted. Now it is clean and fully functional. Thanks for pointing out the bugs.
1 parent 8411e34 commit c949bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Language/Functions/Communication/Serial/print.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ void loop() {
9494
Serial.print("\t");
9595
9696
Serial.print("BIN");
97-
Serial.print("\t");
97+
Serial.println("\t"); // carriage return after the last label
9898
9999
for(x=0; x< 64; x++){ // only part of the ASCII chart, change to suit
100100
101101
// print it out in many formats:
102102
Serial.print(x); // print as an ASCII-encoded decimal - same as "DEC"
103-
Serial.print("\t"); // prints a tab
103+
Serial.print("\t\t"); // prints two tabs to accomodate the label lenght
104104
105105
Serial.print(x, DEC); // print as an ASCII-encoded decimal
106106
Serial.print("\t"); // prints a tab

0 commit comments

Comments
 (0)