![]() I do not understand how I could insert additional keys correctly! Unfortunately I only have the last key (F) working this way. ![]() I tried to expand the code and also have other keys with differet pins by adding them like this: // Arduino USB Keyboard HID demo In fact when I try this in any simple game I see the character going step by step instead of running, just like when pressing "W" multiple times instead of keeping it pressed.Ĭould you help me understanding what is causing this behaviour? The only problem is that it is not detected as a "continuous press". With this code, when I connect pin 5 directly to ground, I simulate the press of "W" on my keyboard. Here is the code that I found on the internet and that I'm trying to use (this is just for the "W" key): I know that other boards provide native HID support but I discovered it only while working with UNO.įortunately I found a solution: flashing Arduino UNO with HID Firmware to make it recognised as a keyboard. I am trying to make a simple "keyboard" out of Arduino UNO R3 to control videogames on PC (I just need up-down-left-right arrows and WASD controls).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |