Skip to content

Commit 2e938f0

Browse files
authored
Made serial italic in Serial.print.
1 parent de1dd80 commit 2e938f0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Language/Functions/Communication/Serial/print.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ title: Serial.print()
1616
=== Description
1717
Prints data to the serial port as human-readable ASCII text. This command can take many forms. Numbers are printed using an ASCII character for each digit. Floats are similarly printed as ASCII digits, defaulting to two decimal places. Bytes are sent as a single character. Characters and strings are sent as is. For example-
1818

19-
* `Serial.print(78)` gives "78" +
20-
* `Serial.print(1.23456)` gives "1.23" +
21-
* `Serial.print('N')` gives "N" +
22-
* `Serial.print("Hello world.")` gives "Hello world."
19+
* `_Serial_.print(78)` gives "78" +
20+
* `_Serial_.print(1.23456)` gives "1.23" +
21+
* `_Serial_.print('N')` gives "N" +
22+
* `_Serial_.print("Hello world.")` gives "Hello world."
2323

2424

2525
An optional second parameter specifies the base (format) to use; permitted values are `BIN(binary, or base 2)`, `OCT(octal, or base 8)`, `DEC(decimal, or base 10)`, `HEX(hexadecimal, or base 16)`. For floating point numbers, this parameter specifies the number of decimal places to use. For example-
2626

27-
* `Serial.print(78, BIN)` gives "1001110" +
28-
* `Serial.print(78, OCT)` gives "116" +
29-
* `Serial.print(78, DEC)` gives "78" +
30-
* `Serial.print(78, HEX)` gives "4E" +
31-
* `Serial.print(1.23456, 0)` gives "1" +
32-
* `Serial.print(1.23456, 2)` gives "1.23" +
33-
* `Serial.print(1.23456, 4)` gives "1.2346"
27+
* `_Serial_.print(78, BIN)` gives "1001110" +
28+
* `_Serial_.print(78, OCT)` gives "116" +
29+
* `_Serial_.print(78, DEC)` gives "78" +
30+
* `_Serial_.print(78, HEX)` gives "4E" +
31+
* `_Serial_.print(1.23456, 0)` gives "1" +
32+
* `_Serial_.print(1.23456, 2)` gives "1.23" +
33+
* `_Serial_.print(1.23456, 4)` gives "1.2346"
3434

35-
You can pass flash-memory based strings to `Serial.print()` by wrapping them with link:../../../../variables/utilities/progmem[F()]. For example:
35+
You can pass flash-memory based strings to `_Serial_.print()` by wrapping them with link:../../../../variables/utilities/progmem[F()]. For example:
3636

3737
`Serial.print(F(“Hello World”))`
3838

@@ -122,7 +122,7 @@ void loop() {
122122

123123
[float]
124124
=== Notes and Warnings
125-
For information on the asyncronicity of `Serial.print()`, see the Notes and Warnings section of the link:../write#howtouse[Serial.write() reference page].
125+
For information on the asyncronicity of `_Serial_.print()`, see the Notes and Warnings section of the link:../write#howtouse[Serial.write() reference page].
126126

127127
--
128128
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)