Skip to content

Commit bdd979a

Browse files
authored
Merge pull request #853 from edgar-bonet/kbd-println
Multiple fixes in Keyboard.{print,println}
2 parents afdbba3 + 8c498c1 commit bdd979a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: Language/Functions/USB/Keyboard/keyboardPrint.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Keyboard.print()
1414

1515
[float]
1616
=== Description
17-
Sends a keystroke to a connected computer.
17+
Sends one or more keystrokes to a connected computer.
1818

1919
`Keyboard.print()` must be called after initiating link:../keyboardbegin[Keyboard.begin()].
2020
[%hardbreaks]
@@ -29,12 +29,12 @@ Sends a keystroke to a connected computer.
2929
[float]
3030
=== Parameters
3131
`character`: a char or int to be sent to the computer as a keystroke. +
32-
`characters`: a string to be sent to the computer as a keystroke.
32+
`characters`: a string to be sent to the computer as keystrokes.
3333

3434

3535
[float]
3636
=== Returns
37-
Number of bytes sent. Data type: `size_t`.
37+
Number of keystrokes sent. Data type: `size_t`.
3838

3939
--
4040
// OVERVIEW SECTION ENDS

Diff for: Language/Functions/USB/Keyboard/keyboardPrintln.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Keyboard.println()
1414

1515
[float]
1616
=== Description
17-
Sends a keystroke to a connected computer, followed by a newline and carriage return.
17+
Sends one or more keystrokes to a connected computer, followed by a keystroke on the Enter key.
1818

1919
`Keyboard.println()` must be called after initiating link:../keyboardbegin[Keyboard.begin()].
2020
[%hardbreaks]
@@ -23,19 +23,19 @@ Sends a keystroke to a connected computer, followed by a newline and carriage re
2323
[float]
2424
=== Syntax
2525
`Keyboard.println()` +
26-
`Keyboard.println(character)`+
26+
`Keyboard.println(character)` +
2727
`Keyboard.println(characters)`
2828

2929

3030
[float]
3131
=== Parameters
32-
`character`: a char or int to be sent to the computer as a keystroke, followed by newline and carriage return. +
33-
`characters`: a string to be sent to the computer as a keystroke, followed by a newline and carriage return.
32+
`character`: a char or int to be sent to the computer as a keystroke, followed by Enter. +
33+
`characters`: a string to be sent to the computer as keystrokes, followed by Enter.
3434

3535

3636
[float]
3737
=== Returns
38-
Number of bytes sent. Data type: `size_t`.
38+
Number of keystrokes sent. Data type: `size_t`.
3939

4040
--
4141
// OVERVIEW SECTION ENDS

0 commit comments

Comments
 (0)