Keyboard.write(char) - This function will send a single character over USB. Here are some of the functions made available to us by this class: ![]() To emulate a USB keyboard, we'll be making use of the Keyboard class. Time for some example code! We broke up the HID example into two parts. The ATmega32U4 takes care of the USB-hardware hurdle, but we've still got to clear the firmware one. There are loads of classes - printers, hubs, speakers, and webcams to mention a few, but in this example we'll be emulating HID - Human Interface Device. ![]() Every USB device is assigned a class, which defines what its general purpose is. It's one of the many defined USB device classes. You can even program it to act just like a mouse, keyboard, or other HID-class USB device. The Pro Micro can be programmed to emulate any USB device you could imagine. ![]() Share on Twitter Share on Facebook Pin It Example 2: HID Mouse and Keyboardīy far, the Pro Micro's most revolutionary feature (as far as Arduinos go) is its true USB functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |