Skip to content
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

Document the layout parameter of Keyboard.begin() #854

Merged
merged 2 commits into from
Nov 21, 2021
Merged
Changes from 1 commit
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
18 changes: 16 additions & 2 deletions Language/Functions/USB/Keyboard/keyboardBegin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,26 @@ When used with a Leonardo or Due board, `Keyboard.begin()` starts emulating a ke

[float]
=== Syntax
`Keyboard.begin()`
`Keyboard.begin()` +
`Keyboard.begin(layout)`


[float]
=== Parameters
None
`layout`: the keyboard layout to use. This parameter is optional and defaults to `KeyboardLayout_en_US`.
per1234 marked this conversation as resolved.
Show resolved Hide resolved


[float]
=== Keyboard layouts
Currently, the library supports the following national keyboard layouts:

* `KeyboardLayout_de_DE`: Germany
* `KeyboardLayout_en_US`: USA
* `KeyboardLayout_es_ES`: Spain
* `KeyboardLayout_fr_FR`: France
* `KeyboardLayout_it_IT`: Italy

Custom layouts can be created by copying and modifying an existing layout. See the instructions in the file KeyboardLayout.h.
edgar-bonet marked this conversation as resolved.
Show resolved Hide resolved
edgar-bonet marked this conversation as resolved.
Show resolved Hide resolved


[float]
Expand Down