Skip to content

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:

sketch_de.ino
#include <Keyboard.h>
void setup() {
delay(5000);
Keyboard.begin(KeyboardLayout_de_DE);
...
Keyboard.end();
}
void loop() {
}

Layouts currently included

  • KeyboardLayout_da_DK: Denmark
  • KeyboardLayout_de_DE: Germany
  • KeyboardLayout_en_US: USA
  • KeyboardLayout_es_ES: Spain
  • KeyboardLayout_fr_FR: France
  • KeyboardLayout_hu_HU: Hungary
  • KeyboardLayout_it_IT: Italy
  • KeyboardLayout_pt_PT: Portugal
  • KeyboardLayout_sv_SE: Sweden

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: SketchInclude LibraryAdd .ZIP Library...) or write your own layout based on e.g. http://kbdlayout.info.

For example:

KeyboardLayout_de_CH.ino
#include <Keyboard.h>
void setup() {
delay(5000);
Keyboard.begin(KeyboardLayout_de_CH);
// ... your code ...
Keyboard.end();
}
void loop() {
}