2

The USB keyboard protocol has no concept of characters. It doesn't know and doesn't care what character a key represents. Instead each code represents the location of the key on the keyboard, and it's down to the software on the computer to map those locations into characters through its own keyboard map. So the Arduino has to do the opposite when you want ...


2

if you are getting ceros, the most probably couse it's the library for the IR. Reinstall or updeate the library, sometimes you have to reinstall more than one time. That should work. About media keys, the keyboard library doesn't have media keys funccionallity, so you need to use another one. This one worked for me https://github.com/NicoHood/HID after you ...


1

It turns out there is a library that can be added to compile the media and system functions for USB keyboard connection into the Leonardo, as well as other Arduino modules. It is available through 'tools','library manager'; it is HID-project by NicoHood. There is an example program called "system example" at github to test it for for wake and sleep....


1

For completeness I am posting this answer. You can produce a UK backslash keystroke event by using something like #define KEY_BSLASH 0xEC This was found rather more empirically than analytically so is not an especially informative result, but it might be of some use to others creating non-ANSI keyboard layouts using Arduinos.


Only top voted, non community-wiki answers of a minimum length are eligible