I decided to work with the official package though. Although it is based on old libmaple it still works. I found that the other package, from Roger Clark, supports USB Consumer HID. I attempted to use the official package from ST, but their USB library only supports a basic keyboard (same as Arduino Keyboard library). With the Arduino IDE, you have access to two development kits, one from STmicroelectronics and another one from Roger Clark (which is based on libmaple). But I found it hard to develop the USB HID device. But there are multiple ways of programming this ARM microcontroller. Although I'll end up buying another keyboard with multimedia buttons sooner or later, now I'm going to program the STM32. The cheapest and most capable board for this purpose is the STM32 "bluepill". But for now, wired USB interface is what I want. I've seen some projects using the Bluetooth functionality of ESP32 to emulate a keyboard. But I have some development boards which I could use to control media and PC volume. Then I realized I was missing the volume and play/pause buttons from the old keyboard. I switched from a keyboard with media controls to a new one without such functionality. Download a library that can be used in conjunction with the Keyboard library. Use STM32 bluepill to create an USB consumer control device and send media commands to computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |