Arduino keyboard emulator code

broken image

You need to note that for a successful compilation of USBKEY, it’s necessary to put UsbKeyboard files into the folder “Arduino IDE libraries” in advance.ĥ. Connect the number key to D1 pin on UNO as Picture 6 shows.Ĥ. If readers need to use other pins, it can be achieved by modifying the wiring definition of the USB pin in usbconfig.h in UsbKeyboard library.ģ. NOTE: the wiring method in the second step is not fixed. Connect the Dupont line welded as the upper picture displays to UNO by referring to the Table 2.

broken image
broken image

Note: please refer to the Table 1 to find out what each color stands for.Īfter welding, the circuit should be like Picture 4.Ģ.

broken image