10/29/2023 0 Comments Emulate keyboard with arduino![]() ![]() My train of thought ran thus: if the libraries could be made to work somehow I would have a familiar interface for emulating a keyboard. A bit more searching revealed the TinyUSB Mouse and Keyboard library, a library sitting on top of the Adafruit TinyUSB libraries providing the same API for mouse and keyboard USB HID as the Arduino API. This is an implementation of TinyUSB on top of the Arduino core for some chips, including the RP2040. Searching on how to use TinyUSB led me to Adafruit's TinyUSB Arduino library. (Note, when this project was originally carried out, there was no Arduino Core for the RP2040.) The last goal was the most important for me as there is (at the time of writing) currently no HID device example in pico-examples code, referring to the standard TinyUSB example, which is somewhat lacking in comments to elucidate what does what, and how to compile this with the Pico SDK. Find an easy way to emulate a USB HID device in C/C++ on the Pico using the Pico SDK. ![]() Investigate USB device support on the Pico.Add a key on my desk for the missing super (Windows) key on my IBM Model M keyboard.Short the contacts, get a key press on a USB HID keyboard. This project contains the code for a simple, single key keyboard based on the Raspberry Pi Pico.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |