Keyboard.print()
Description
Sends a keystroke to a connected computer.
Keyboard.print() must be called after initiating Keyboard.begin().
Syntax
Keyboard.print(character)
Keyboard.print(characters)
Parameter Values
- 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.
Return Values
- Number of bytes sent. Data type: size_t.
Example Code
※ NOTES AND WARNINGS:
When you use the Keyboard.print() command, the Arduino takes over your keyboard! Make sure you have control before you use the command. A pushbutton to toggle the keyboard control state is effective.
See Also
- Language : Arduino - Keyboard
- Language : Keyboard.begin()
- Language : Keyboard.end()
- Language : Keyboard Modifiers
- Language : Keyboard.press()
- Language : Keyboard.println()
- Language : Keyboard.release()
- Language : Keyboard.releaseAll()
- Language : Keyboard.write()
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |