Skip to content

Update print.adoc #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Language/Functions/Communication/Serial/print.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ void loop() {
Serial.print("\t");

Serial.print("BIN");
Serial.print("\t");
Serial.println("\t"); // carriage return after the last label

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In pull request #318, I used Serial.println(""); here, as this was consistent with what is already used in line 118 for printing a carriage return.


for(x=0; x< 64; x++){ // only part of the ASCII chart, change to suit

// print it out in many formats:
Serial.print(x); // print as an ASCII-encoded decimal - same as "DEC"
Serial.print("\t"); // prints a tab
Serial.print("\t\t"); // prints two tabs to accomodate the label lenght
Copy link

@shane-lawson shane-lawson Mar 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo of the word "length"


Serial.print(x, DEC); // print as an ASCII-encoded decimal
Serial.print("\t"); // prints a tab
Expand Down