Skip to content

Multiple fixes in Keyboard.{print,println} #853

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 3 commits into from
Nov 21, 2021
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions Language/Functions/USB/Keyboard/keyboardPrint.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title: Keyboard.print()

[float]
=== Description
Sends a keystroke to a connected computer.
Sends one or more keystrokes to a connected computer.

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


[float]
=== Returns
Number of bytes sent. Data type: `size_t`.
Number of keystrokes sent. Data type: `size_t`.

--
// OVERVIEW SECTION ENDS
Expand Down
10 changes: 5 additions & 5 deletions Language/Functions/USB/Keyboard/keyboardPrintln.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title: Keyboard.println()

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

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


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


[float]
=== Returns
Number of bytes sent. Data type: `size_t`.
Number of keystrokes sent. Data type: `size_t`.

--
// OVERVIEW SECTION ENDS
Expand Down