I have a project ( GitHub - qwelyt/Keyboard: Building my own keyboard ) where I'm trying to build my own keyboard from pretty much scratch.
I started to write my code on an Arduino UNO R3 SMD (much help fromhttp://mitchtech.net/arduino-usb-hid-keyboard/ )
I've found firmware that turns the UNO into a HID and all my code works as it should.
Using the UNO was great for prototyping. Now that I want to build the actual keyboard I wanted something smaller. I decided on the Arduino/Genuino Micro (Arduino Micro — Arduino Official Store ) since it has USB capabilities and is small (dimension wise).
Now I ran into trouble. How do I actually port my code to the Micro?
I shouldn't have to flash a new firmware, should I? And if I have to, which?
I took a look at Keyboard - Arduino Reference but that library is... lets say "lacking the ability to be a real keyboard".
Basically what I want is to get my Micro to act as any generic keyboard you can buy. Not send specific letters, I want it to be a keyboard, so it should send key codes and let the computer decide what that means. Like I have it with the UNO right now.
That lib also have the problem with not being able to send USB datagrams (an uint8_t basically). which allows you to send 6 keys at once + modifier ( "NKRO", which is really 6+modifiers-key-roll-over in USB ).
I looked at GitHub - NicoHood/HID: Bring enhanced HID functions to your Arduino! and couldn't really figure out what the project actually tries to do. It says it only supports US layouts, which ought to mean that it isn't sending key codes, but actually telling the computer what to output.
So. After all that rant (I admit I might be harsh atm, and a bit frustrated):
How can I send generic key codes with the Arduino Micro?