I'm trying to use an Arduino Pro Micro as a cheap Rubber Ducky. I want to use it on a PC that uses the Belgian AZERTY layout.
The problem is that Keyboard.h is not designed for AZERTY keyboards. When I use it on a PC set to QWERTY, it works fine. However, on AZERTY, some keys get mapped incorrectly. For example, typing "notepad" ends up as "notepqd". I could work around this by manually adjusting my code, but it becomes much more cumbersome when I need characters like : or /.
I’ve tried 4–5 other libraries that supposedly support AZERTY, but none were compatible with my board or my version of the Arduino IDE (2.3.6).
Does anyone know a reliable way to make Keyboard.h (or an alternative) work correctly with AZERTY layouts on a Pro Micro?
1 Answer 1
The Keyboard library does not support the Belgian keyboard layout. It does, however, support the French layout:
Keyboard.begin(KeyboardLayout_fr_FR);
This is an AZERTY layout close to, but not identical, to the Belgian layout. Depending on what you want to type, it could be usable for you.
If this doesn't fit the bill, you may create a Belgian layout
yourself: copy KeyboardLayout_fr_FR
as KeyboardLayout_fr_BE
, and
edit that file to match the actual Belgian layout. If you do so, it
would be nice to contribute it to the Keyboard library as a pull
request.
Keyboard.begin(KeyboardLayout_fr_FR);
? Is that French AZERTY layout close enough for your needs? If not, would you be willing to submit a pull request to the Keyboard library with the Belgian layout?