I want to use a Leonardo with USB chip to emit some commands via USB port to a digital piano computer (running Windows 7) for various functions. I've gotten the Leonardo to emit page up and page down functions using a simple project I found on the web. What I need now is the following set of functions: left arrow, right arrow, F11, wake, and sleep. What I need help with is:
- where is the complete list of functions available with keyboard.press?
- are wake and sleep among those available?
- if they aren't, what header file could be modified to include them?
Thank you for any suggestions.
1 Answer 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. It works perfectly. I expect it'll work for the other functions too.
keyboard scan codes