
If you have a text editor open and active, it'll print it out there. What your computer does with that character, or string of characters, is entirely dependent on what program it's running at the time.
#ARDUINO PRO MICRO USB C PRO#
You don't need to include any libraries or anything, just pull out any of those functions.Īfter a Keyboard.write() or Keyboard.print() function has been performed by the Pro Micro, your computer will have to decide what to do with it. Make sure you release any buttons you press, otherwise you'll encounter some wiggyness on your computer. One presses a button down, the other releases a button. There are a couple, slightly more advanced keyboard methods now available with the release of Arduino 1.0.1: Keyboard.press(byte) and Keyboard.release(byte).Keyboard.println(string) - Just like Keyboard.print() except this adds an key to the end of the string.

You could also replace the "Hello, world" with either a String variable, or an array of chars. This'll send your computer an 'H,' followed by 'e,' followed by an 'l,' followed by.

#ARDUINO PRO MICRO USB C SERIES#

You could also replace 'z' with a pre-defined char variable. Note those are single-quotes around the character.
#ARDUINO PRO MICRO USB C HOW TO#
The goal of this tutorial is to explain how to use the Arduino HID library, so you can get the most out of your Pro Micro. Unfortunately, that HID stuff is somewhat tucked (or even locked) away from us. That USB support includes HID functionality. Fortunately for us, Arduino exists, and with the release of 1.0 it comes with built-in support for the ATmega32U4 and its USB core. So the ATmega32U4 takes care of the USB-hardware hurdle, but we've still got to clear the firmware one. You might be holding an HID device in one hand right now, while your other hand is hovering over another. There are loads of classes - printers, hubs, speakers and webcams to mention a few - but this tutorial is going to specialize in HID: Human Interface Device. Every USB device is assigned a device class, which defines what exactly its general purpose is. What is HID you might ask? 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. So now, when you connect the Arduino to your computer, they're connected directly over the USB bus (excuse my RAS).

The Pro Micro is a tiny, Arduino-compatible microcontroller centered around an ATmega32U4 - an 8-bit AVR very similar to the ATmega328 with one huge caveat: The 32U4 comes equipped with a full-speed USB transceiver. What if you could do it with one line of code, inside the comfy confines of Arduino? Interested? Well, say hello to my micro friend: the SparkFun Pro Micro! How cool would it be if you could turn any button, joystick, sensor or other electronic gizmo into a USB keyboard and/or mouse? You could make just about any input device you want into a controller for your computer programs or games. Turn your ProMicro into a USB Keyboard/Mouse
