Keyboard Layout
You can check Arduino’s built-in keyboard layouts here. By default, sketches use KeyboardLayout_en_US. To change it to e.g. German, pass the layout to the Keyboard.begin(layout) function:
#include <Keyboard.h>
void setup() { delay(5000); Keyboard.begin(KeyboardLayout_de_DE); ... Keyboard.end();}
void loop() {}Layouts currently included
KeyboardLayout_da_DK: DenmarkKeyboardLayout_de_DE: GermanyKeyboardLayout_en_US: USAKeyboardLayout_es_ES: SpainKeyboardLayout_fr_FR: FranceKeyboardLayout_hu_HU: HungaryKeyboardLayout_it_IT: ItalyKeyboardLayout_pt_PT: PortugalKeyboardLayout_sv_SE: Sweden
Special Keyboard Layout
Section titled “Special Keyboard Layout”Because the product has no vendor-locked firmware with a built-in interpreter, you can use any C code and keyboard layout you want. For example, you can use a library like KeyboardUTF8 by JohnWasser (Arduino IDE: Sketch → Include Library → Add .ZIP Library...) or write your own layout based on e.g. http://kbdlayout.info.
For example:
#include <Keyboard.h>
void setup() { delay(5000); Keyboard.begin(KeyboardLayout_de_CH); // ... your code ... Keyboard.end();}
void loop() {}