Skip to main content
Arduino

Return to Answer

Copy edit.
Source Link
Edgar Bonet
  • 45.1k
  • 4
  • 42
  • 81

Your Arduino will be virtually typing on a keyboard like this:

unlabeled keyboard
© Aon fi – CC-BY 3.0

See the labels on the keys? No, thereThere are none. Your Windows OS has its own idea of what each key means, bybut the Arduino has no way of knowing that. Instead, you have to tell it explicitly what keyboard layout to use, e.g.:

Keyboard.begin(KeyboardLayout_fr_FR);

If you don't, the Keyboard library will assume KeyboardLayout_en_US.

There is no way the computer can tell the keyboard what layout it expects.

Your Arduino will be typing on a keyboard like this:

unlabeled keyboard
© Aon fi – CC-BY 3.0

See the labels on the keys? No, there are none. Your Windows OS has its own idea of what each key means, by the Arduino has no way of knowing that. Instead, you have to tell it explicitly what keyboard layout to use, e.g.:

Keyboard.begin(KeyboardLayout_fr_FR);

If you don't, the Keyboard library will assume KeyboardLayout_en_US.

There is no way the computer can tell the keyboard what layout it expects.

Your Arduino will be virtually typing on a keyboard like this:

unlabeled keyboard
© Aon fi – CC-BY 3.0

See the labels on the keys? There are none. Your Windows OS has its own idea of what each key means, but the Arduino has no way of knowing that. Instead, you have to tell it explicitly what keyboard layout to use, e.g.:

Keyboard.begin(KeyboardLayout_fr_FR);

If you don't, the Keyboard library will assume KeyboardLayout_en_US.

There is no way the computer can tell the keyboard what layout it expects.

Source Link
Edgar Bonet
  • 45.1k
  • 4
  • 42
  • 81

Your Arduino will be typing on a keyboard like this:

unlabeled keyboard
© Aon fi – CC-BY 3.0

See the labels on the keys? No, there are none. Your Windows OS has its own idea of what each key means, by the Arduino has no way of knowing that. Instead, you have to tell it explicitly what keyboard layout to use, e.g.:

Keyboard.begin(KeyboardLayout_fr_FR);

If you don't, the Keyboard library will assume KeyboardLayout_en_US.

There is no way the computer can tell the keyboard what layout it expects.

AltStyle によって変換されたページ (->オリジナル) /