I recently purchased a cheap Leonardo and I'm trying to use the Keyboard.h library to emulate a keyboard. I am using a nordic keyboard layout (Finnish) and ran into some problems because the arduino only sends keystrokes using US layout.
I have been able to connect every other symbol (either through the Keyboard.cpp file or with the help of the .ino file) correctly except for these < > |
These are typed using one button (different combinations: shift and Alt gr). Can I even access this button through the arduino or am I trying to do something impossible?
This is what I did for symbols that used alt gr as the library doesn't support adding altgr into the Keyboard.cpp file. However I have not found a symbol on the Finnish keyboard that would correspond to the '<' symbol on the US keyboard.
I see that those are all on one key on a Finnish keyboard, at least the one I'm looking at.
I fact, it looks like an extra key between the shift and the Z.
That's a pickle.
Worked! Or partially at least. You still need to define all characters that require the altgr key in the .ino file, but knowing the hexadecimal for '<' made it possible to add all symbols to the keyboard.
Here is how I defined the altgr characters to the code. You can probably get the idea without the whole code.
Added the possibility to use the "alt gr" key in the ascii map. It is used at least with nordic keyboards to reach certain characters such as € $ and @.